From e9b50927342e679d3e98e819fa4e7e9ee29e9600 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 14 Oct 2021 09:48:25 +0200 Subject: [PATCH] dist: Fix frozen modules not packaged (such as zipimport in Python 3.8+) --- direct/src/dist/FreezeTool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/direct/src/dist/FreezeTool.py b/direct/src/dist/FreezeTool.py index d4af3c3ff8..c8b42263fe 100644 --- a/direct/src/dist/FreezeTool.py +++ b/direct/src/dist/FreezeTool.py @@ -2563,9 +2563,9 @@ class PandaModuleFinder(modulefinder.ModuleFinder): (or self.path if None). Returns a tuple like (fp, path, stuff), where stuff is a tuple like (suffix, mode, type). """ - if imp.is_frozen(name): - # Don't pick up modules that are frozen into p3dpython. - raise ImportError("'%s' is a frozen module" % (name)) + #if imp.is_frozen(name): + # # Don't pick up modules that are frozen into p3dpython. + # raise ImportError("'%s' is a frozen module" % (name)) if parent is not None: fullname = parent.__name__+'.'+name