forked from VimPlug/jedi
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