X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46456f618c3d094d4fe91ba876e4cfca852ce368..0e21cf4902f312ffd26c050c67f00be8607d400b:/wxPython/scripts/CreateMacScripts.py

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: