mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
import mangled name too
This commit is contained in:
parent
359c111231
commit
f54565390d
@ -96,10 +96,18 @@ class ConnectionRepository(DirectObject.DirectObject):
|
||||
# Get all symbols.
|
||||
dcImports.update(module.__dict__)
|
||||
else:
|
||||
if not hasattr(module, symbolName):
|
||||
mangledName = self.mangleName(symbolName)
|
||||
gotAny = 0
|
||||
if hasattr(module, symbolName):
|
||||
dcImports[symbolName] = getattr(module, symbolName)
|
||||
gotAny = 1
|
||||
if hasattr(module, mangledName):
|
||||
dcImports[mangledName] = getattr(module, mangledName)
|
||||
gotAny = 1
|
||||
|
||||
if not gotAny:
|
||||
self.notify.error("Symbol %s not found in module %s." % (
|
||||
symbolName, moduleName))
|
||||
dcImports[symbolName] = getattr(module, symbolName)
|
||||
else:
|
||||
# "import moduleName"
|
||||
# Copy the module itself into the dictionary.
|
||||
|
Loading…
x
Reference in New Issue
Block a user