AdrianLC / sublime-text-virtualenv

Manage your virtualenvs directly from Sublime Text 3
https://github.com/AdrianLC/sublime-text-virtualenv
MIT License
36 stars 17 forks source link

Rewrite exec command on OS X. Fixes #1. #5

Closed snaily closed 9 years ago

snaily commented 9 years ago

Sublime's normal exec routine runs commands in a login shell to ensure the PATH from .bash_profile et al are respected. In this case, we explicitly do want the supplied path rather than the shell path, so this patch rewrites the kwargs to the exe routine to avoid being run in a login shell.