diff options
author | Guido van Rossum <guido@python.org> | 1997-12-08 05:01:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-08 05:01:06 (GMT) |
commit | 94ce0d19631cc6e72518044dd2f3a97f135c5d60 (patch) | |
tree | c7e2d8520f36b315545f9cea4924e466f5810a88 /Tools/freeze/freeze.py | |
parent | c5d2d517000bf71c4afc1775c30d97c8d395e2b1 (diff) | |
download | cpython-94ce0d19631cc6e72518044dd2f3a97f135c5d60.zip cpython-94ce0d19631cc6e72518044dd2f3a97f135c5d60.tar.gz cpython-94ce0d19631cc6e72518044dd2f3a97f135c5d60.tar.bz2 |
Add special handling for Python modules that are imported implicitly
by the Python runtime: 'site' and 'exceptions'.
Diffstat (limited to 'Tools/freeze/freeze.py')
-rwxr-xr-x | Tools/freeze/freeze.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py index 1f0356b..b584ec5 100755 --- a/Tools/freeze/freeze.py +++ b/Tools/freeze/freeze.py @@ -85,6 +85,9 @@ def main(): odir = '' win = sys.platform[:3] == 'win' + # modules that are imported by the Python runtime + implicits = ["site", "exceptions"] + # output files frozen_c = 'frozen.c' config_c = 'config.c' @@ -217,6 +220,9 @@ def main(): target = os.path.join(odir, target) makefile = os.path.join(odir, makefile) + for mod in implicits: + modules.append(findmodules.findmodule(mod)) + # Actual work starts here... dict = findmodules.findmodules(scriptfile, modules, path) |