projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mention wxTB_RIGHT patch
[wxWidgets.git]
/
wxPython
/
scripts
/
CreateMacScripts.py
diff --git
a/wxPython/scripts/CreateMacScripts.py
b/wxPython/scripts/CreateMacScripts.py
index 093e3d4b7bff73a8cc90c6d17522ac21bcd10ed7..69905adc160a5e895310b179b1c073efe3c854fc 100644
(file)
--- 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"
from CreateBatchFiles import scripts
repltxt = "#!/usr/bin/env python"
-
# use the existing pythonw as a template
# 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:
def main():
for script, usegui in scripts: