mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Always set the __file__ attribute, so dynamic link modules are indicated.
This commit is contained in:
parent
b7da642e2e
commit
ab045f952c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue