Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
Disable check for old data directory name
Browse files Browse the repository at this point in the history
Znode Tool never had them
  • Loading branch information
yura-pakhuchiy committed Jun 2, 2018
1 parent 60c409a commit c926af7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ def init(self, app_path):
home_dir = os.path.expanduser('~')

app_user_dir = os.path.join(home_dir, APP_DATA_DIR_NAME)
if not os.path.exists(app_user_dir):
# check if there exists directory used by app versions prior to 0.9.18
app_user_dir_old = os.path.join(home_dir, APP_NAME_SHORT)
if os.path.exists(app_user_dir_old):
shutil.copytree(app_user_dir_old, app_user_dir)
# if not os.path.exists(app_user_dir):
# # check if there exists directory used by app versions prior to 0.9.18
# app_user_dir_old = os.path.join(home_dir, APP_NAME_SHORT)
# if os.path.isdir(app_user_dir_old):
# shutil.copytree(app_user_dir_old, app_user_dir)

self.data_dir = app_user_dir
self.cache_dir = os.path.join(app_user_dir, 'cache')
Expand Down

0 comments on commit c926af7

Please sign in to comment.