mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
home env doesnt exist in windows, so work around that
This commit is contained in:
parent
83be470f1e
commit
f133704905
1 changed files with 4 additions and 1 deletions
|
@ -67,7 +67,10 @@ def get_config_dir(filename=None):
|
||||||
|
|
||||||
def get_default_download_dir():
|
def get_default_download_dir():
|
||||||
"""Returns the default download directory"""
|
"""Returns the default download directory"""
|
||||||
return os.environ.get("HOME")
|
if common.windows_check():
|
||||||
|
return os.path.expanduser("~")
|
||||||
|
else:
|
||||||
|
return os.environ.get("HOME")
|
||||||
|
|
||||||
def get_default_torrent_dir():
|
def get_default_torrent_dir():
|
||||||
"""Returns the default torrent directory"""
|
"""Returns the default torrent directory"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue