Avoiding issues with wrong module loaded

This could happen if your python path is not the first item on sys.path
This commit is contained in:
Strahinja Val Markovic 2013-02-04 18:12:46 -08:00
parent cc14981774
commit 4b88970e91

View File

@ -83,7 +83,7 @@ function! youcompleteme#Enable()
py import sys py import sys
py import vim py import vim
exe 'python sys.path = sys.path + ["' . s:script_folder_path . '/../python"]' exe 'python sys.path.insert( 0, "' . s:script_folder_path . '/../python" )'
py import ycm py import ycm
py ycm_state = ycm.YouCompleteMe() py ycm_state = ycm.YouCompleteMe()