From 9f46ad7835c5068f6d57ce0f3ca80144dc480fce Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 9 Nov 2014 11:09:24 +0000 Subject: [PATCH] FreezeTool shouldn't assume that panda3d.py exists --- direct/src/showutil/FreezeTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/showutil/FreezeTool.py b/direct/src/showutil/FreezeTool.py index 4f0ac57ca4..5c9afac00e 100644 --- a/direct/src/showutil/FreezeTool.py +++ b/direct/src/showutil/FreezeTool.py @@ -1383,7 +1383,7 @@ class PandaModuleFinder(modulefinder.ModuleFinder): # A special case: map a reference to the "panda3d.blah" # module into the appropriate Panda3D dll. m = getattr(panda3d, partname, None) - if m: + if m and hasattr(m, '__libraries__'): libname = m.__libraries__[-1] partname = libname fqname = libname