Browse Source

dist: Fix odd FreezeTool.addModule behavior with empty text

rdb 2 years ago
parent
commit
02e6487585
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/dist/FreezeTool.py

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

@@ -1334,7 +1334,7 @@ class Freezer:
                 self.mf.load_module(mdef.moduleName, fp, pathname, stuff)
             else:
                 stuff = ("", "rb", _PY_SOURCE)
-                if mdef.text:
+                if mdef.text is not None:
                     fp = io.StringIO(mdef.text)
                 else:
                     fp = open(pathname, 'rb')