diff options
author | Guido van Rossum <guido@python.org> | 1994-10-03 16:37:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-10-03 16:37:36 (GMT) |
commit | 619e1beda9be9b9a84d3949e4537e3dd6d62f233 (patch) | |
tree | 96cb0a6d1be7d74707da37ce8bb4bc02ecd67b53 /Tools | |
parent | 00ff4336a9c4258d72aa11fb5160f7afbbe88d84 (diff) | |
download | cpython-619e1beda9be9b9a84d3949e4537e3dd6d62f233.zip cpython-619e1beda9be9b9a84d3949e4537e3dd6d62f233.tar.gz cpython-619e1beda9be9b9a84d3949e4537e3dd6d62f233.tar.bz2 |
Add check for unknown modules
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/freeze/freeze.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py index 2588c60..c423819 100755 --- a/Tools/freeze/freeze.py +++ b/Tools/freeze/freeze.py @@ -129,9 +129,15 @@ def main(): dict = findmodules.findmodules(scriptfile, modules, path) builtins = [] - for mod in dict.keys(): + mods = dict.keys() + mods.sort() + for mod in mods: if dict[mod] == '<builtin>': builtins.append(mod) + elif dict[mod] == '<unknown>': + sys.stderr.write( + 'Warning: module %s not found anywhere\n' % + mod) outfp = open(frozen_c, 'w') try: |