Remove the module path from the parser tree.
Some static analysis tests are still failing.
This commit is contained in:
1 parent
b60ec024fa
commit
8a35a04439
14 files changed
+102
-101
No files matched your search
@@ -142,7 +142,11 @@ class Script(object):
|
||||
|
||||
@cache.memoize_method
|
||||
def _get_module(self):
|
||||
module = er.ModuleContext(self._evaluator, self._get_module_node())
|
||||
module = er.ModuleContext(
|
||||
self._evaluator,
|
||||
self._get_module_node(),
|
||||
self.path
|
||||
)
|
||||
imports.add_module(self._evaluator, module.name.string_name, module)
|
||||
return module
|
||||
|
||||
@@ -398,7 +402,8 @@ class Interpreter(Script):
|
||||
return interpreter.MixedModuleContext(
|
||||
self._evaluator,
|
||||
parser_module,
|
||||
self.namespaces
|
||||
self.namespaces,
|
||||
path=self.path
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user