diff options
author | Guido van Rossum <guido@python.org> | 1998-03-06 19:55:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-06 19:55:10 (GMT) |
commit | ab045f952cee898c01f181105bb9f346e9338852 (patch) | |
tree | e1d4ae74a78213058666f63e6d9a38f2c04c580e /Tools | |
parent | b7da642e2e283e33445c318733348a1e765b0031 (diff) | |
download | cpython-ab045f952cee898c01f181105bb9f346e9338852.zip cpython-ab045f952cee898c01f181105bb9f346e9338852.tar.gz cpython-ab045f952cee898c01f181105bb9f346e9338852.tar.bz2 |
Always set the __file__ attribute, so dynamic link modules are indicated.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/freeze/modulefinder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/freeze/modulefinder.py b/Tools/freeze/modulefinder.py index 8dce01d..3aa6941 100644 --- a/Tools/freeze/modulefinder.py +++ b/Tools/freeze/modulefinder.py @@ -229,8 +229,8 @@ class ModuleFinder: else: co = None m = self.add_module(fqname) + m.__file__ = pathname if co: - m.__file__ = pathname m.__code__ = co self.scan_code(co, m) self.msgout(2, "load_module ->", m) |