This commit is contained in:
Marcos Pinto 2007-09-10 21:26:21 +00:00
parent fd5f99630f
commit f880a05e14
1 changed files with 5 additions and 1 deletions

View File

@ -39,11 +39,15 @@ CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSIO
import platform
if platform.system() == "Windows":
CONFIG_DIR = os.path.join(os.path.expanduser("~\\"), 'deluge')
INSTALL_PREFIX = ''
if not os.path.exists(CONFIG_DIR):
os.mkdir(CONFIG_DIR)
else:
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
import sys
if hasattr(sys, "frozen"):
INSTALL_PREFIX = ''
else:
# the necessary substitutions are made at installation time
INSTALL_PREFIX = '@datadir@'