From 9747bbc26f5bed9a433c86488fcd15e7887a54b0 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Fri, 4 Oct 2013 13:50:57 -0700 Subject: [PATCH] Removing the sys.path changes from jedi_completer This not needed anymore, the correct path to jedi is added to sys.path in ycmd.py --- python/ycm/completers/python/jedi_completer.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/python/ycm/completers/python/jedi_completer.py b/python/ycm/completers/python/jedi_completer.py index f1599276..158b4171 100644 --- a/python/ycm/completers/python/jedi_completer.py +++ b/python/ycm/completers/python/jedi_completer.py @@ -22,20 +22,12 @@ from ycm.completers.completer import Completer from ycm.server import responses -import sys -from os.path import join, abspath, dirname - -# We need to add the jedi package to sys.path, but it's important that we clean -# up after ourselves, because ycm.YouCompletMe.GetFiletypeCompleterForFiletype -# removes sys.path[0] after importing completers.python.hook -sys.path.insert( 0, join( abspath( dirname( __file__ ) ), 'jedi' ) ) try: import jedi except ImportError: raise ImportError( 'Error importing jedi. Make sure the jedi submodule has been checked out. ' 'In the YouCompleteMe folder, run "git submodule update --init --recursive"') -sys.path.pop( 0 ) class JediCompleter( Completer ):