Commit d39d8d0e authored by Just van Rossum's avatar Just van Rossum

Added PythonIDE to the applet list; added destination filename support for applets -- jvr

parent 8b7fdf00
...@@ -96,12 +96,13 @@ def buildmwproject(top, creator, projects): ...@@ -96,12 +96,13 @@ def buildmwproject(top, creator, projects):
def buildapplet(top, dummy, list): def buildapplet(top, dummy, list):
"""Create python applets""" """Create python applets"""
template = buildtools.findtemplate() template = buildtools.findtemplate()
for src in list: for src, dst in list:
if src[-3:] != '.py': if src[-3:] != '.py':
raise 'Should end in .py', src raise 'Should end in .py', src
base = os.path.basename(src) base = os.path.basename(src)
dst = os.path.join(top, base)[:-3] #dst = os.path.join(top, base)[:-3]
src = os.path.join(top, src) src = os.path.join(top, src)
dst = os.path.join(top, dst)
try: try:
os.unlink(dst) os.unlink(dst)
except os.error: except os.error:
...@@ -190,10 +191,11 @@ I_68K_EXTENSIONS : (buildmwproject, "CWIE", [ ...@@ -190,10 +191,11 @@ I_68K_EXTENSIONS : (buildmwproject, "CWIE", [
]), ]),
I_APPLETS : (buildapplet, None, [ I_APPLETS : (buildapplet, None, [
":Mac:scripts:EditPythonPrefs.py", (":Mac:scripts:EditPythonPrefs.py", "EditPythonPrefs"),
":Mac:scripts:BuildApplet.py", (":Mac:scripts:BuildApplet.py", "BuildApplet"),
":Mac:scripts:BuildApplication.py", (":Mac:scripts:BuildApplication.py", "BuildApplication"),
":Mac:scripts:ConfigurePython.py" (":Mac:scripts:ConfigurePython.py", "ConfigurePython"),
(":Mac:Tools:IDE:PythonIDE.py", "Python IDE"),
]), ]),
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment