home env doesnt exist in windows, so work around that
This commit is contained in:
parent
83be470f1e
commit
f133704905
|
@ -67,6 +67,9 @@ 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"""
|
||||||
|
if common.windows_check():
|
||||||
|
return os.path.expanduser("~")
|
||||||
|
else:
|
||||||
return os.environ.get("HOME")
|
return os.environ.get("HOME")
|
||||||
|
|
||||||
def get_default_torrent_dir():
|
def get_default_torrent_dir():
|
||||||
|
|
Loading…
Reference in New Issue