win config dir touchup

This commit is contained in:
Marcos Pinto 2007-09-04 16:57:04 +00:00
parent 1ac7e0eaab
commit 26dd7a83cf
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ CLIENT_CODE = "DE"
CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSION.split('.')))
import platform
if platform.system() == "Windows":
CONFIG_DIR = os.path.join(os.path.expanduser("~/"), 'deluge')
CONFIG_DIR = os.path.join(os.path.expanduser("~\\"), 'deluge')
if not os.path.exists(CONFIG_DIR):
os.mkdir(CONFIG_DIR)
else:
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')