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:
parent
a25ed01a7c
commit
9482ad189e
@ -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 ),
|
||||
|
Loading…
Reference in New Issue
Block a user