mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
dist: fix exception when module has None __path__
This commit is contained in:
parent
47feac9a3d
commit
92476a3788
2
direct/src/dist/FreezeTool.py
vendored
2
direct/src/dist/FreezeTool.py
vendored
@ -785,7 +785,7 @@ class Freezer:
|
||||
# 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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user