mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Annoying deprecation warning in Python 2.5
This commit is contained in:
parent
8f8d56b530
commit
0ef34bcbc2
@ -41,7 +41,7 @@ if sys.platform == "win32":
|
||||
target = dir
|
||||
if target == None:
|
||||
message = "Cannot find %s" % (filename)
|
||||
raise message
|
||||
raise ImportError, message
|
||||
|
||||
# And add that directory to the system path.
|
||||
path = os.environ["PATH"]
|
||||
@ -62,7 +62,7 @@ def Dtool_PreloadDLL(module):
|
||||
break
|
||||
if target == None:
|
||||
message = "DLL loader cannot find %s." % (module)
|
||||
raise message
|
||||
raise ImportError, message
|
||||
|
||||
# Now import the file explicitly.
|
||||
pathname = os.path.join(target, filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user