1. Anthony Tuininga
  2. cx_Freeze

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!

  • Participants
  • Parent commits 72bb93d
  • Branches default

Comments (0)

Files changed (1)

File cx_Freeze/freezer.py

View file
  • Ignore whitespace
         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):