mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Merge pull request #37 from mattn/fix_delay_load
fix delayload. (@mattn fixed a bug related to his pull requests)
This commit is contained in:
@@ -175,13 +175,13 @@ import vim
|
||||
import sys
|
||||
import os
|
||||
from os.path import dirname, abspath, join
|
||||
sys.path.insert(0, join(dirname(dirname(abspath(vim.eval('expand("<sfile>")')))), 'jedi'))
|
||||
sys.path.insert(0, join(abspath(dirname(dirname(vim.eval('expand("<sfile>")')))+'/../plugin'), 'jedi'))
|
||||
|
||||
# to display errors correctly
|
||||
import traceback
|
||||
|
||||
# update the sys path to include the jedi_vim script
|
||||
sys.path.append(abspath(dirname(vim.eval('expand("<sfile>")')+'/../plugin')))
|
||||
sys.path.append(abspath(dirname(vim.eval('expand("<sfile>")'))+'/../plugin'))
|
||||
import jedi_vim
|
||||
sys.path.pop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user