mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
Add the cache_path parameter to parso calls.
This commit is contained in:
@@ -6,6 +6,7 @@ import inspect
|
||||
import os
|
||||
|
||||
from parso.python import parse
|
||||
from jedi import settings
|
||||
from jedi.evaluate import compiled
|
||||
from jedi.cache import underscore_memoization
|
||||
from jedi.evaluate import imports
|
||||
@@ -108,7 +109,8 @@ def _load_module(evaluator, path, python_object):
|
||||
grammar=evaluator.grammar,
|
||||
path=path,
|
||||
cache=True,
|
||||
diff_cache=True
|
||||
diff_cache=True,
|
||||
cache_path=settings.cache_directory
|
||||
).get_root_node()
|
||||
python_module = inspect.getmodule(python_object)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user