From 08a9ff59b620eb9d76b89b558d4706af3f0b7b31 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 16 Sep 2013 14:24:38 -0700 Subject: [PATCH] Using os.getcwd instead of getcwd from vimscript --- python/ycm/extra_conf_store.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/ycm/extra_conf_store.py b/python/ycm/extra_conf_store.py index 5b4814d3..9611d697 100644 --- a/python/ycm/extra_conf_store.py +++ b/python/ycm/extra_conf_store.py @@ -24,7 +24,6 @@ import imp import random import string import sys -import vim from ycm import vimsupport from ycm import user_options_store from fnmatch import fnmatch @@ -66,7 +65,7 @@ def CallExtraConfVimCloseIfExists(): def _CallExtraConfMethod( function_name ): - vim_current_working_directory = vim.eval( 'getcwd()' ) + vim_current_working_directory = os.getcwd() path_to_dummy = os.path.join( vim_current_working_directory, 'DUMMY_FILE' ) # The dummy file in the Vim CWD ensures we find the correct extra conf file module = ModuleForSourceFile( path_to_dummy )