support a non-Filename addition

This commit is contained in:
David Rose 2010-09-10 14:02:40 +00:00
parent 73eca34e0d
commit c6b163f757
1 changed files with 3 additions and 0 deletions

View File

@ -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