1
0
forked from VimPlug/jedi

Add the cache_path parameter to parso calls.

This commit is contained in:
Dave Halter
2017-05-20 10:08:48 -04:00
parent 50c7137437
commit f35f1b9676
5 changed files with 12 additions and 6 deletions

View File

@@ -471,7 +471,9 @@ def _load_module(evaluator, path=None, code=None, sys_path=None, parent_module=N
if path is not None and path.endswith(('.py', '.zip', '.egg')) \
and dotted_path not in settings.auto_import_modules:
module_node = parse(code=code, path=path, cache=True, diff_cache=True)
module_node = parse(
code=code, path=path, cache=True, diff_cache=True,
cache_path=settings.cache_directory)
from jedi.evaluate.representation import ModuleContext
return ModuleContext(evaluator, module_node, path=path)