Skip to content

Commit

Permalink
Fix start_process() error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Feb 4, 2018
1 parent 6cac264 commit e37de74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rplugin/python3/deoplete/parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
# ============================================================================

import time
import os

from deoplete import logger
from deoplete.process import Process
# from deoplete.util import error
from deoplete.util import error


class Parent(logger.LoggingMixin):
Expand Down Expand Up @@ -68,6 +69,11 @@ def _start_process(self, context, serveraddr):
if self._proc:
return

if not os.access(context['python3'], os.X_OK):
error(self._vim, str(context['python3']) + ' is not executble.')
error(self._vim, 'You need to set g:python3_host_prog.')
return

self._proc = Process(
[context['python3'], context['dp_main'], serveraddr],
context, context['cwd'])
Expand Down

0 comments on commit e37de74

Please sign in to comment.