summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-10-03 16:37:36 (GMT)
committerGuido van Rossum <guido@python.org>1994-10-03 16:37:36 (GMT)
commit619e1beda9be9b9a84d3949e4537e3dd6d62f233 (patch)
tree96cb0a6d1be7d74707da37ce8bb4bc02ecd67b53 /Tools/freeze
parent00ff4336a9c4258d72aa11fb5160f7afbbe88d84 (diff)
downloadcpython-619e1beda9be9b9a84d3949e4537e3dd6d62f233.zip
cpython-619e1beda9be9b9a84d3949e4537e3dd6d62f233.tar.gz
cpython-619e1beda9be9b9a84d3949e4537e3dd6d62f233.tar.bz2
Add check for unknown modules
Diffstat (limited to 'Tools/freeze')
-rwxr-xr-xTools/freeze/freeze.py8
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: