mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
don't error if a module doesn't define __path__
This commit is contained in:
parent
eb78f7cd0d
commit
4896c93827
@ -660,6 +660,7 @@ class Freezer:
|
|||||||
if module != None:
|
if module != None:
|
||||||
for symbol in moduleName.split('.')[1:]:
|
for symbol in moduleName.split('.')[1:]:
|
||||||
module = getattr(module, symbol)
|
module = getattr(module, symbol)
|
||||||
|
if hasattr(module, '__path__'):
|
||||||
return module.__path__
|
return module.__path__
|
||||||
|
|
||||||
# If it didn't work--maybe the module is unimportable because
|
# If it didn't work--maybe the module is unimportable because
|
||||||
|
Loading…
x
Reference in New Issue
Block a user