mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-05 02:54:16 +08:00
Modules have now the name __main__ if they contain dots.
This commit is contained in:
@@ -763,6 +763,8 @@ class ModuleWrapper(use_metaclass(CachedMetaClass, tree.Module, Wrapper)):
|
||||
if module == self:
|
||||
return name
|
||||
|
||||
return '__main__'
|
||||
|
||||
def py__file__(self):
|
||||
"""
|
||||
In contrast to Python's __file__ can be None.
|
||||
|
||||
Reference in New Issue
Block a user