X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46456f618c3d094d4fe91ba876e4cfca852ce368..89fad939ec0d423961d8e93b2a0927f5b77bf256:/wxPython/scripts/CreateMacScripts.py?ds=sidebyside diff --git a/wxPython/scripts/CreateMacScripts.py b/wxPython/scripts/CreateMacScripts.py index 093e3d4b7b..69905adc16 100644 --- a/wxPython/scripts/CreateMacScripts.py +++ b/wxPython/scripts/CreateMacScripts.py @@ -27,10 +27,11 @@ if len(sys.argv) > 1: from CreateBatchFiles import scripts repltxt = "#!/usr/bin/env python" - # use the existing pythonw as a template -gui_template = open(pythonw, "r").read().replace('"$@"', '"%s.py" "$@"') - +gui_template = """ +#!/bin/sh +exec "%s" %%s.py "$@" +""" % (sys.executable) def main(): for script, usegui in scripts: