|
@@ -41,7 +41,7 @@ if sys.platform == "win32":
|
|
|
target = dir
|
|
target = dir
|
|
|
if target == None:
|
|
if target == None:
|
|
|
message = "Cannot find %s" % (filename)
|
|
message = "Cannot find %s" % (filename)
|
|
|
- raise message
|
|
|
|
|
|
|
+ raise ImportError, message
|
|
|
|
|
|
|
|
# And add that directory to the system path.
|
|
# And add that directory to the system path.
|
|
|
path = os.environ["PATH"]
|
|
path = os.environ["PATH"]
|
|
@@ -62,7 +62,7 @@ def Dtool_PreloadDLL(module):
|
|
|
break
|
|
break
|
|
|
if target == None:
|
|
if target == None:
|
|
|
message = "DLL loader cannot find %s." % (module)
|
|
message = "DLL loader cannot find %s." % (module)
|
|
|
- raise message
|
|
|
|
|
|
|
+ raise ImportError, message
|
|
|
|
|
|
|
|
# Now import the file explicitly.
|
|
# Now import the file explicitly.
|
|
|
pathname = os.path.join(target, filename)
|
|
pathname = os.path.join(target, filename)
|