# # # patch "wscript" # from [a62adeaeb1930bf390ac1a9b1f7500817eed1989] # to [fba8f23f54be9ce14712d54dadc33bf970f08fff] # ============================================================ --- wscript a62adeaeb1930bf390ac1a9b1f7500817eed1989 +++ wscript fba8f23f54be9ce14712d54dadc33bf970f08fff @@ -86,12 +86,6 @@ def shutdown(): app_bundle = blddir + '/default/' + APPNAME + '.app' prog_bin = blddir + '/default/' + APPNAME + '/' + APPNAME - if Params.g_options.exe: - if sys.platform == "darwin" and os.path.exists(app_bundle): - os.popen('open "' + app_bundle + '"') - else: - os.popen(prog_bin) - if Params.g_options.bundle: try: # remove any old application bundle @@ -231,6 +225,12 @@ def shutdown(): traceback.print_tb(sys.exc_info()[2]) sys.exit(1) + if Params.g_options.exe: + if sys.platform == "darwin" and os.path.exists(app_bundle): + os.popen('open "' + app_bundle + '"') + else: + os.popen(prog_bin) + def detect_qt4_dir(): qtdir = os.environ.get('QT4_ROOT', '')