Fix old legacy Windows location

This commit is contained in:
Zestyr 2017-06-22 02:28:32 +02:00
parent ebec2fe955
commit 6a1a91f8f1
2 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ at anytime.
### Changed
* Linux default downloads folder changed from `~/Downloads` to `XDG_DOWNLOAD_DIR`
* Linux folders moved from the home directory to `~/.local/share/lbry`
* Windows folders moved from `%APPDATA%/Roaming/lbry` to `%APPDATA%/Local/lbry`
* Windows folders moved from `%APPDATA%/Roaming` to `%APPDATA%/Local/lbry`
### Fixed
* Fixed some log messages throwing exceptions

View file

@ -56,10 +56,10 @@ elif 'nt' in sys.platform:
default_download_dir = get_path(FOLDERID.Downloads, UserHandle.current)
# This checks whether the folders are still in their old locations
if os.path.isdir(user_data_dir('lbryum', 'lbry', roaming=True)) and \
os.path.isdir(user_data_dir('lbrynet', 'lbry', roaming=True)):
default_data_dir = user_data_dir('lbrynet', 'lbry', roaming=True)
default_lbryum_dir = user_data_dir('lbryum', 'lbry', roaming=True)
if os.path.isdir(user_data_dir('lbryum', roaming=True)) and \
os.path.isdir(user_data_dir('lbrynet', roaming=True)):
default_data_dir = user_data_dir('lbrynet', roaming=True)
default_lbryum_dir = user_data_dir('lbryum', roaming=True)
else:
default_data_dir = user_data_dir('lbrynet', 'lbry')
default_lbryum_dir = user_data_dir('lbryum', 'lbry')