]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added some comments
authorJust van Rossum <just@lettererror.com>
Tue, 2 Feb 1999 22:27:41 +0000 (22:27 +0000)
committerJust van Rossum <just@lettererror.com>
Tue, 2 Feb 1999 22:27:41 +0000 (22:27 +0000)
Mac/Tools/IDE/BuildIDE.py

index ad6a4ea436e3e3f3e3c9d5e1f1e14f2697c281eb..82a06367e22f4601a3bc882d2f4d59fa68cba26a 100644 (file)
@@ -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)
+