From 6eff8ba5faa561a2929e157be1e1a091e58ad8ad Mon Sep 17 00:00:00 2001 From: roxma Date: Sun, 15 Oct 2017 14:59:45 +0800 Subject: [PATCH] python sys.executable detection is not reliable in embedded environment. #52 --- autoload/cm.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/cm.vim b/autoload/cm.vim index a86606b..50b4939 100644 --- a/autoload/cm.vim +++ b/autoload/cm.vim @@ -420,7 +420,7 @@ func! s:start_core_channel(...) let s:channel_started = 1 let g:_cm_py3 = get(g:,'python3_host_prog','') - if g:_cm_py3 == '' && has('python3') + if g:_cm_py3 == '' && has('nvim') && has('python3') " heavy weight " but better support for python detection python3 import sys