diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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') |