mirror of https://github.com/python/cpython.git
Always set the __file__ attribute, so dynamic link modules are indicated.
This commit is contained in:
parent
b7da642e2e
commit
ab045f952c
|
@ -229,8 +229,8 @@ def load_module(self, fqname, fp, pathname, (suffix, mode, type)):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue