diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py index 2588c602324..c4238197be6 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] == '': builtins.append(mod) + elif dict[mod] == '': + sys.stderr.write( + 'Warning: module %s not found anywhere\n' % + mod) outfp = open(frozen_c, 'w') try: