Explorar el Código

FreezeTool shouldn't assume that panda3d.py exists

rdb hace 11 años
padre
commit
9f46ad7835
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      direct/src/showutil/FreezeTool.py

+ 1 - 1
direct/src/showutil/FreezeTool.py

@@ -1383,7 +1383,7 @@ class PandaModuleFinder(modulefinder.ModuleFinder):
             # A special case: map a reference to the "panda3d.blah"
             # A special case: map a reference to the "panda3d.blah"
             # module into the appropriate Panda3D dll.
             # module into the appropriate Panda3D dll.
             m = getattr(panda3d, partname, None)
             m = getattr(panda3d, partname, None)
-            if m:
+            if m and hasattr(m, '__libraries__'):
                 libname = m.__libraries__[-1]
                 libname = m.__libraries__[-1]
                 partname = libname
                 partname = libname
                 fqname = libname
                 fqname = libname