mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-05-11 09:08:51 +08:00
Warning if Jedi is not installed.
This commit is contained in:
+4
-1
@@ -194,7 +194,10 @@ import traceback
|
|||||||
|
|
||||||
# update the sys path to include the jedi_vim script
|
# update the sys path to include the jedi_vim script
|
||||||
sys.path.insert(1, os.path.join(vim.eval('expand("<sfile>:p:h:h")'), 'plugin'))
|
sys.path.insert(1, os.path.join(vim.eval('expand("<sfile>:p:h:h")'), 'plugin'))
|
||||||
import jedi_vim
|
try:
|
||||||
|
import jedi_vim
|
||||||
|
except ImportError:
|
||||||
|
vim.eval('echom "Please install Jedi if you want to use jedi_vim."')
|
||||||
sys.path.pop(1)
|
sys.path.pop(1)
|
||||||
|
|
||||||
PYTHONEOF
|
PYTHONEOF
|
||||||
|
|||||||
Reference in New Issue
Block a user