mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-09 03:54:52 +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 sys
|
||||||
import os
|
import os
|
||||||
from os.path import dirname, abspath, join
|
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
|
# to display errors correctly
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
# update the sys path to include the jedi_vim script
|
# 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
|
import jedi_vim
|
||||||
sys.path.pop()
|
sys.path.pop()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user