X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..1f2b90153e9580ef89095cec62a61f770cb24ef9:/wxPython/scripts/CreateMacScripts.py diff --git a/wxPython/scripts/CreateMacScripts.py b/wxPython/scripts/CreateMacScripts.py index d8ab06fca0..69905adc16 100644 --- a/wxPython/scripts/CreateMacScripts.py +++ b/wxPython/scripts/CreateMacScripts.py @@ -1,6 +1,6 @@ #---------------------------------------------------------------------- # Name: CreateMacScripts.py -# Purpose: Massages the scripts to be usable with MachoPython +# Purpose: Massages the scripts to be usable with MacPython-OSX # # Author: Robin Dunn # @@ -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: