From ab045f952cee898c01f181105bb9f346e9338852 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 6 Mar 1998 19:55:10 +0000 Subject: Always set the __file__ attribute, so dynamic link modules are indicated. --- Tools/freeze/modulefinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12