X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..2fadbbfd128f69cb9922a6938c893ad79b01e749:/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: