From 5929d1ad53e50b3c1a2ad6110645ac4fe1eee06a Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 10 Sep 2007 21:22:10 +0000 Subject: [PATCH] install path for windows --- src/common.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common.py b/src/common.py index bc87f7446..e526940d2 100644 --- a/src/common.py +++ b/src/common.py @@ -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')