Commits

Anthony Tuininga committed 6e41b2a

Ensure that namespace packages are loaded first so that any requests for
included modules or full packages can actually be satisfied!

Comments (0)

Files changed (1)

cx_Freeze/freezer.py

         finder = cx_Freeze.ModuleFinder(self.includeFiles, argsSource.excludes,
                 argsSource.path, argsSource.replacePaths,
                 argsSource.copyDependentFiles, compress = argsSource.compress)
+        for name in argsSource.namespacePackages:
+            package = finder.IncludeModule(name, namespace = True)
+            package.ExtendPath()
         for name in argsSource.includes:
             finder.IncludeModule(name)
         for name in argsSource.packages:
             finder.IncludePackage(name)
-        for name in argsSource.namespacePackages:
-            package = finder.IncludeModule(name, namespace = True)
-            package.ExtendPath()
         return finder
 
     def _PrintReport(self, fileName, modules):