Skip to content
Browse files

dist: fix exception when module has None __path__

  • Loading branch information
rdb committed Nov 17, 2019
1 parent 47feac9 commit 92476a37880a73b98baed6a3a28d2f1867f18889
Showing with 1 addition and 1 deletion.
  1. +1 −1 direct/src/dist/
@@ -785,7 +785,7 @@ def __init__(self, previous = None, debugLevel = 0,
# already-imported modules. (Some of them might do their own
# special path mangling.)
for moduleName, module in list(sys.modules.items()):
if module and hasattr(module, '__path__'):
if module and getattr(module, '__path__', None) is not None:
path = list(getattr(module, '__path__'))
if path:
modulefinder.AddPackagePath(moduleName, path[0])

0 comments on commit 92476a3

Please sign in to comment.
You can’t perform that action at this time.