#----------------------------------------------------------------------
# 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
#
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: