dist: Fix replacePaths just prepending "linecache" before paths
This commit is contained in:
parent
1f05d37b20
commit
dfa1eb78cd
|
|
@ -1299,7 +1299,8 @@ class Freezer:
|
|||
for moduleName, module in list(self.mf.modules.items()):
|
||||
if module.__code__:
|
||||
origPathname = module.__code__.co_filename
|
||||
replace_paths.append((origPathname, moduleName))
|
||||
if origPathname:
|
||||
replace_paths.append((origPathname, moduleName))
|
||||
self.mf.replace_paths = replace_paths
|
||||
|
||||
# Now that we have built up the replacement mapping, go back
|
||||
|
|
|
|||
Loading…
Reference in New Issue