From c6b163f75766fcc9cd83b96fa5eb9122f51e19b3 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 10 Sep 2010 14:02:40 +0000 Subject: [PATCH] support a non-Filename addition --- direct/src/showutil/FreezeTool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/showutil/FreezeTool.py b/direct/src/showutil/FreezeTool.py index f95e058d9a..55f1ef307e 100644 --- a/direct/src/showutil/FreezeTool.py +++ b/direct/src/showutil/FreezeTool.py @@ -7,6 +7,7 @@ import os import marshal import imp import platform +import types from distutils.sysconfig import PREFIX, get_python_inc, get_python_version # Temporary (?) try..except to protect against unbuilt extend_frozen. @@ -488,6 +489,8 @@ class Freezer: # The file on disk it was loaded from, if any. self.filename = filename + if isinstance(filename, types.StringTypes): + self.filename = Filename(filename) # True if the module was found via the modulefinder. self.implicit = implicit