dist: Fix replacePaths just prepending "linecache" before paths

This commit is contained in:
rdb 2020-08-17 10:58:09 +02:00
parent 1f05d37b20
commit dfa1eb78cd

View File

@ -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