rdb 14 лет назад
Родитель
Сommit
8ca42e3964
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      direct/src/showutil/FreezeTool.py

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

@@ -675,7 +675,10 @@ class Freezer:
             if path == None:
             if path == None:
                 return None
                 return None
 
 
-        file, pathname, description = imp.find_module(baseName, path)
+        try:
+            file, pathname, description = imp.find_module(baseName, path)
+        except ImportError:
+            return None
 
 
         if not os.path.isdir(pathname):
         if not os.path.isdir(pathname):
             return None
             return None