Using full path to Python in popen call

This is the root of the problem in issue #577.

Fixes #577.
This commit is contained in:
Strahinja Val Markovic 2013-10-09 19:18:36 -07:00
parent a25ed01a7c
commit 9482ad189e

View File

@ -20,6 +20,7 @@
import os import os
import vim import vim
import subprocess import subprocess
import sys
import tempfile import tempfile
import json import json
from ycm import vimsupport from ycm import vimsupport
@ -61,7 +62,7 @@ class YouCompleteMe( object ):
with tempfile.NamedTemporaryFile( delete = False ) as options_file: with tempfile.NamedTemporaryFile( delete = False ) as options_file:
self._temp_options_filename = options_file.name self._temp_options_filename = options_file.name
json.dump( dict( self._user_options ), options_file ) json.dump( dict( self._user_options ), options_file )
command = ''.join( [ 'python ', command = ''.join( [ sys.executable + ' ',
_PathToServerScript(), _PathToServerScript(),
' --port=', ' --port=',
str( server_port ), str( server_port ),