mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Don't show libpandaexpress ImportError if importing panda3d.core failed
This commit is contained in:
parent
2b034506fa
commit
461b231a2e
@ -111,9 +111,14 @@ def Dtool_PreloadDLL(module):
|
||||
# new-style build, and if it fails we must be in an old-style build.
|
||||
try:
|
||||
from panda3d.core import *
|
||||
except ImportError:
|
||||
Dtool_PreloadDLL("libpandaexpress")
|
||||
from libpandaexpress import *
|
||||
except ImportError as ex:
|
||||
# Maybe we're using an old-style libpandaexpress module?
|
||||
try:
|
||||
Dtool_PreloadDLL("libpandaexpress")
|
||||
from libpandaexpress import *
|
||||
except ImportError:
|
||||
# Nope. Re-raise the original ImportError.
|
||||
raise ex
|
||||
|
||||
def Dtool_ObjectToDict(cls, name, obj):
|
||||
cls.DtoolClassDict[name] = obj;
|
||||
|
Loading…
x
Reference in New Issue
Block a user