From f133704905d5c497ec053e8c8d10a0b86d0ea4f6 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 14 Dec 2007 03:48:16 +0000 Subject: [PATCH] home env doesnt exist in windows, so work around that --- deluge/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/common.py b/deluge/common.py index 52dba9414..ed5f8fdf3 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -67,7 +67,10 @@ def get_config_dir(filename=None): def get_default_download_dir(): """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(): """Returns the default torrent directory"""