install path for windows

This commit is contained in:
Marcos Pinto 2007-09-10 21:22:10 +00:00
parent c6cb4a20c8
commit 5929d1ad53
1 changed files with 6 additions and 2 deletions

View File

@ -44,8 +44,12 @@ if platform.system() == "Windows":
else:
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
# the necessary substitutions are made at installation time
INSTALL_PREFIX = '@datadir@'
if hasattr(sys, "frozen"):
INSTALL_PREFIX = ''
else:
# the necessary substitutions are made at installation time
INSTALL_PREFIX = '@datadir@'
GLADE_DIR = os.path.join(INSTALL_PREFIX, 'share', 'deluge', 'glade')
PIXMAP_DIR = os.path.join(INSTALL_PREFIX, 'share', 'deluge', 'pixmaps')
PLUGIN_DIR = os.path.join(INSTALL_PREFIX, 'share', 'deluge', 'plugins')