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
This commit is contained in:
Strahinja Val Markovic 2013-10-04 13:50:57 -07:00
parent da723b1425
commit 9747bbc26f

View File

@ -22,20 +22,12 @@
from ycm.completers.completer import Completer from ycm.completers.completer import Completer
from ycm.server import responses 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: try:
import jedi import jedi
except ImportError: except ImportError:
raise ImportError( raise ImportError(
'Error importing jedi. Make sure the jedi submodule has been checked out. ' 'Error importing jedi. Make sure the jedi submodule has been checked out. '
'In the YouCompleteMe folder, run "git submodule update --init --recursive"') 'In the YouCompleteMe folder, run "git submodule update --init --recursive"')
sys.path.pop( 0 )
class JediCompleter( Completer ): class JediCompleter( Completer ):