summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/wscript b/wscript
index b84ff9d..439e9cf 100644
--- a/wscript
+++ b/wscript
@@ -76,8 +76,12 @@ def configure(conf):
conf.env['APP_INSTALL_NAME'] = Params.g_options.app_install_name
conf.env['APP_HUMAN_NAME'] = Params.g_options.app_human_name
- conf.define('PATCHAGE_DATA_DIR', os.path.normpath(
- conf.env['DATADIR'] + conf.env['APP_INSTALL_NAME']))
+ if conf.env['BUNDLE']:
+ conf.define('PATCHAGE_DATA_DIR', os.path.normpath(
+ conf.env['DATADIRNAME'] + conf.env['APP_INSTALL_NAME']))
+ else:
+ conf.define('PATCHAGE_DATA_DIR', os.path.normpath(
+ conf.env['DATADIR'] + conf.env['APP_INSTALL_NAME']))
conf.write_config_header('config.h')