mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
The parso sys path was not properly set
This commit is contained in:
@@ -95,6 +95,8 @@ def echo_highlight(msg):
|
|||||||
|
|
||||||
jedi_path = os.path.join(os.path.dirname(__file__), 'jedi')
|
jedi_path = os.path.join(os.path.dirname(__file__), 'jedi')
|
||||||
sys.path.insert(0, jedi_path)
|
sys.path.insert(0, jedi_path)
|
||||||
|
parso_path = os.path.join(os.path.dirname(__file__), 'parso')
|
||||||
|
sys.path.insert(0, parso_path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import jedi
|
import jedi
|
||||||
@@ -120,6 +122,7 @@ else:
|
|||||||
echo_highlight('Please update your Jedi version, it is too old.')
|
echo_highlight('Please update your Jedi version, it is too old.')
|
||||||
finally:
|
finally:
|
||||||
sys.path.remove(jedi_path)
|
sys.path.remove(jedi_path)
|
||||||
|
sys.path.remove(parso_path)
|
||||||
|
|
||||||
|
|
||||||
def catch_and_print_exceptions(func):
|
def catch_and_print_exceptions(func):
|
||||||
|
|||||||
Reference in New Issue
Block a user