]> granicus.if.org Git - python/commitdiff
Always set the __file__ attribute, so dynamic link modules are indicated.
authorGuido van Rossum <guido@python.org>
Fri, 6 Mar 1998 19:55:10 +0000 (19:55 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Mar 1998 19:55:10 +0000 (19:55 +0000)
Tools/freeze/modulefinder.py

index 8dce01d9df0d1cd91a8d71809bab33d3bb1825f4..3aa69410a68c52bb368f4c2791fedc51b8a947d5 100644 (file)
@@ -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)