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 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 ),
|
||||||
|
Loading…
Reference in New Issue
Block a user