1.1 --- a/generator.py Thu Nov 17 21:45:25 2016 +0100
1.2 +++ b/generator.py Thu Nov 17 21:48:26 2016 +0100
1.3 @@ -910,19 +910,17 @@
1.4 __Try
1.5 {"""
1.6
1.7 - for name in self.importer.modules.keys():
1.8 + for name in self.importer.order_modules():
1.9 function_name = "__main_%s" % encode_path(name)
1.10 print >>f_signatures, "void %s();" % function_name
1.11
1.12 - # Emit the main module's function last.
1.13 # Omit the native module.
1.14
1.15 - if name not in ("__main__", "native"):
1.16 + if name != "native":
1.17 print >>f_code, """\
1.18 %s();""" % function_name
1.19
1.20 print >>f_code, """\
1.21 - __main___main__();
1.22 return 0;
1.23 }
1.24 __Catch_anonymous