From 4b88970e91add118a5f9625770d5edd85437e438 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 4 Feb 2013 18:12:46 -0800 Subject: [PATCH] Avoiding issues with wrong module loaded This could happen if your python path is not the first item on sys.path --- autoload/youcompleteme.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index ecac0fd0..d6a6ca0b 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -83,7 +83,7 @@ function! youcompleteme#Enable() py import sys 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 ycm_state = ycm.YouCompleteMe()