Skip to content

Commit

Permalink
Merge pull request SublimeLinter#412 from yanokwa/feature/use-login-s…
Browse files Browse the repository at this point in the history
…hell

find_python_script should use the login shell
  • Loading branch information
groteworld committed Apr 30, 2016
2 parents f6c5a28 + af4d55b commit 88578d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lint/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,8 @@ def find_python_script(python_path, script):
if sublime.platform() in ('osx', 'linux'):
pyenv = which('pyenv')
if pyenv:
out = run_shell_cmd((pyenv, 'which', script)).strip().decode()
out = run_shell_cmd((os.environ['SHELL'], '-l', '-c',
'echo ""; {} which {}'.format(pyenv, script))).strip().decode().split('\n')[-1]
if os.path.isfile(out):
return out
return which(script)
Expand Down

0 comments on commit 88578d6

Please sign in to comment.