summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/mkcwproject/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Lib/mkcwproject/__init__.py')
-rw-r--r--Mac/Lib/mkcwproject/__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Mac/Lib/mkcwproject/__init__.py b/Mac/Lib/mkcwproject/__init__.py
index 8bd3a8d..6551b22 100644
--- a/Mac/Lib/mkcwproject/__init__.py
+++ b/Mac/Lib/mkcwproject/__init__.py
@@ -40,12 +40,13 @@ def mkproject(outputfile, modulename, settings):
#
# Generate the project from the xml
#
+ makeproject(dictcopy['mac_projectxmlname'], outputfile)
+
+def makeproject(xmlfile, projectfile):
cw = cwtalker.MyCodeWarrior(start=1)
cw.send_timeout = AppleEvents.kNoTimeOut
-## xmlfss = macfs.FSSpec(dictcopy['mac_projectxmlname'])
-## prjfss = macfs.FSSpec(outputfile)
- xmlfss = dictcopy['mac_projectxmlname']
- prjfss = outputfile
+ xmlfss = macfs.FSSpec(xmlfile)
+ prjfss = macfs.FSSpec(projectfile)
cw.activate()
cw.my_mkproject(prjfss, xmlfss)