Procházet zdrojové kódy

remove annoying error message for now

David Rose před 16 roky
rodič
revize
d3bc7e497d
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      direct/src/ffi/DoGenPyCode.py

+ 4 - 1
direct/src/ffi/DoGenPyCode.py

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