Kaydet (Commit) ab045f95 authored tarafından Guido van Rossum's avatar Guido van Rossum

Always set the __file__ attribute, so dynamic link modules are indicated.

üst b7da642e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment