From 9482ad189e174614a9a5a7cba0b767ec1d3e2a12 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 9 Oct 2013 19:18:36 -0700 Subject: [PATCH] Using full path to Python in popen call This is the root of the problem in issue #577. Fixes #577. --- python/ycm/youcompleteme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ycm/youcompleteme.py b/python/ycm/youcompleteme.py index 18aa5b70..73274190 100644 --- a/python/ycm/youcompleteme.py +++ b/python/ycm/youcompleteme.py @@ -20,6 +20,7 @@ import os import vim import subprocess +import sys import tempfile import json from ycm import vimsupport @@ -61,7 +62,7 @@ class YouCompleteMe( object ): with tempfile.NamedTemporaryFile( delete = False ) as options_file: self._temp_options_filename = options_file.name json.dump( dict( self._user_options ), options_file ) - command = ''.join( [ 'python ', + command = ''.join( [ sys.executable + ' ', _PathToServerScript(), ' --port=', str( server_port ),