Don't suppress dynamicLibrary-loading error messages

This commit is contained in:
rdb 2009-11-08 14:23:52 +00:00
parent 7036d75501
commit 455fbce7ef
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ def generateNativeWrappers():
# the library isn't present. This is particularly necessary
# in the runtime (plugin) environment, where all libraries are
# not necessarily downloaded.
pandaModules.write('try:\n from %sModules import *\nexcept ImportError:\n pass\n\n' % (moduleName))
pandaModules.write('try:\n from %sModules import *\nexcept ImportError as err:\n if "DLL loader cannot find" not in str(err):\n raise\n\n' % (moduleName))
moduleModulesFilename = os.path.join(outputCodeDir, '%sModules.py' % (moduleName))
moduleModules = open(moduleModulesFilename, 'w')