Skip to content

Commit

Permalink
add explanation to setup error when reinstalling
Browse files Browse the repository at this point in the history
  • Loading branch information
luponzo86 committed Jan 18, 2020
1 parent 95cb130 commit e4a105e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rhapsody/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ def initialSetup(working_dir=None, refresh=False, download_EVmutation=True):
working_dir = DEFAULT_WORKING_DIR
if os.path.isdir(working_dir):
raise EnvironmentError(
f"A folder named '{working_dir}' already exists. "
"Please specify another name.")
f"A folder at default path '{working_dir}' already "
"exists. If it contains configuration files from a "
"previous installation that you wish to recover, please "
f"run: initialSetup('{working_dir}') \n"
"Otherwise, please specify another location.")
else:
os.mkdir(working_dir)
pd.LOGGER.info(f'Default working directory set: {working_dir}')
Expand Down

0 comments on commit e4a105e

Please sign in to comment.