summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-02-02 22:27:41 (GMT)
committerJust van Rossum <just@lettererror.com>1999-02-02 22:27:41 (GMT)
commitb8bf163dde525a951b8f1fbc14b9cb69f1454531 (patch)
tree062d17c88ee17a8a8fe4f871ac2986c7bd3911e7 /Mac
parent2e3f7bece07f3c40f0fe1785b83dd90aea59cb34 (diff)
downloadcpython-b8bf163dde525a951b8f1fbc14b9cb69f1454531.zip
cpython-b8bf163dde525a951b8f1fbc14b9cb69f1454531.tar.gz
cpython-b8bf163dde525a951b8f1fbc14b9cb69f1454531.tar.bz2
added some comments
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/BuildIDE.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/BuildIDE.py b/Mac/Tools/IDE/BuildIDE.py
index ad6a4ea..82a0636 100644
--- a/Mac/Tools/IDE/BuildIDE.py
+++ b/Mac/Tools/IDE/BuildIDE.py
@@ -1,3 +1,7 @@
+"""Build a "big" applet for the IDE, and put it in the Python home
+directory. It will contain all IDE-specific modules as PYC resources,
+which reduces the startup time (especially on slower machines)."""
+
import sys
import os
import buildtools
@@ -20,13 +24,18 @@ Res.UseResFile(targetref)
files = os.listdir(ide_home)
-files = filter(lambda x: x[-3:] == '.py' and x not in ("BuildIDE.py", "PythonIDE.py"), files)
+# skip this script and the main program
+files = filter(lambda x: x[-3:] == '.py' and
+ x not in ("BuildIDE.py", "PythonIDE.py"), files)
+# add the modules as PYC resources
for name in files:
print "adding", name
fullpath = os.path.join(ide_home, name)
id, name = py_resource.frompyfile(fullpath, name[:-3], preload=1,
ispackage=0)
+# add W resources
wresref = Res.OpenResFile(os.path.join(ide_home, "Widgets.rsrc"))
buildtools.copyres(wresref, targetref, [], 0)
+