From 26dd7a83cfea1030297adc0c0a7f4fd4c3e0e655 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 4 Sep 2007 16:57:04 +0000 Subject: [PATCH] win config dir touchup --- src/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common.py b/src/common.py index bf60b3a4d..8f50cd4a8 100644 --- a/src/common.py +++ b/src/common.py @@ -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')