Skip to content

Commit

Permalink
Merge pull request #171 from zchee/path
Browse files Browse the repository at this point in the history
Fix #170 path problem
  • Loading branch information
Shougo authored Jun 30, 2018
2 parents 45f1ac2 + 51811c0 commit 682469f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rplugin/python3/deoplete/sources/deoplete_jedi/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,16 @@ def __init__(self, desc_len=0, short_types=False, show_docstring=False,
self.env.update({'PYTHONPATH': self._make_pythonpath()})

if 'VIRTUAL_ENV' in os.environ:
prog = os.path.join(self.env['VIRTUAL_ENV'], 'bin', 'python')
prog = os.path.join(
self.env['VIRTUAL_ENV'],
('Scripts' if os.name == 'nt' else 'bin'), 'python')
elif python_path:
prog = python_path
else:
prog = 'python'

self.cmd = [prog, '-u', __file__, '--desc-length', str(desc_len)]
self.cmd = [prog, '-u', os.path.normpath(__file__),
'--desc-length', str(desc_len)]
if short_types:
self.cmd.append('--short-types')
if show_docstring:
Expand Down

0 comments on commit 682469f

Please sign in to comment.