]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/scripts/CreateMacScripts.py
do accept focus in notebook as it needs it for tabs
[wxWidgets.git] / wxPython / scripts / CreateMacScripts.py
index 093e3d4b7bff73a8cc90c6d17522ac21bcd10ed7..69905adc160a5e895310b179b1c073efe3c854fc 100644 (file)
@@ -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: