projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't define specifyLevel variable in release builds (fixes gcc and probably others...
[wxWidgets.git]
/
wxPython
/
scripts
/
CreateMacScripts.py
diff --git
a/wxPython/scripts/CreateMacScripts.py
b/wxPython/scripts/CreateMacScripts.py
index d8ab06fca099f7ae71a6f505c32a1d9eb8261a0f..69905adc160a5e895310b179b1c073efe3c854fc 100644
(file)
--- a/
wxPython/scripts/CreateMacScripts.py
+++ b/
wxPython/scripts/CreateMacScripts.py
@@
-1,6
+1,6
@@
#----------------------------------------------------------------------
# Name: CreateMacScripts.py
#----------------------------------------------------------------------
# Name: CreateMacScripts.py
-# Purpose: Massages the scripts to be usable with Mac
hoPython
+# Purpose: Massages the scripts to be usable with Mac
Python-OSX
#
# Author: Robin Dunn
#
#
# Author: Robin Dunn
#
@@
-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: