Browse Source

dist: Fix replacePaths just prepending "linecache" before paths

rdb 5 years ago
parent
commit
dfa1eb78cd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/dist/FreezeTool.py

+ 2 - 1
direct/src/dist/FreezeTool.py

@@ -1299,7 +1299,8 @@ class Freezer:
         for moduleName, module in list(self.mf.modules.items()):
         for moduleName, module in list(self.mf.modules.items()):
             if module.__code__:
             if module.__code__:
                 origPathname = module.__code__.co_filename
                 origPathname = module.__code__.co_filename
-                replace_paths.append((origPathname, moduleName))
+                if origPathname:
+                    replace_paths.append((origPathname, moduleName))
         self.mf.replace_paths = replace_paths
         self.mf.replace_paths = replace_paths
 
 
         # Now that we have built up the replacement mapping, go back
         # Now that we have built up the replacement mapping, go back