Merge pull request #790 from lbryio/fix-new-directories

Fix new default directories
This commit is contained in:
Jack Robison 2017-07-19 19:00:52 -04:00 committed by GitHub
commit c96ce5b8ad
2 changed files with 4 additions and 3 deletions

View file

@ -26,6 +26,7 @@ at anytime.
* Fixed https://github.com/lbryio/lbry/issues/774
* Fix XDG compliance on Linux
* Fixed https://github.com/lbryio/lbry/issues/760
* Fixed default directories bug
### Deprecated
*

View file

@ -78,9 +78,9 @@ def _get_old_directories(platform):
dirs['lbryum'] = os.path.expanduser('~/.lbryum')
dirs['download'] = os.path.expanduser('~/Downloads')
elif platform == LINUX:
dirs['data'] = os.path.join(os.path.expanduser('~'), '~/.lbrynet')
dirs['lbryum'] = os.path.join(os.path.expanduser('~'), '~/.lbryum')
dirs['download'] = os.path.join(os.path.expanduser('~'), 'Downloads')
dirs['data'] = os.path.expanduser('~/.lbrynet')
dirs['lbryum'] = os.path.expanduser('~/.lbryum')
dirs['download'] = os.path.expanduser('~/Downloads')
else:
raise ValueError('unknown platform value')
return dirs