Setting $PATH per-project for a virtualenv?

Hi,

I'm setting PyCharm to use the /bin/python interpreter for my virtualenv, and that works fine, I get all the right imports.  However, I can't see how to get PyCharm to use the virtualenv's /bin/ directory in general.

For example, I have a pre-commit hook that trys to run pep8, so when I try to commit code from pyflakes that fails because it doesn't have the right $PATH (pep8 is in my virtualenv).

How can I get PyCharm to use a particular $PATH for all commands in a particular project?

Thanks

3 comments
Comment actions Permalink
I have the same problem and need :)
Why do the tools not execute in the context of the associated virtualenv ? :)
Maybe we could at least have a macro with the path to the /script and /bin directory ?
0
Comment actions Permalink
I too would like this feature/functionality.  Would it help if a feature request was added in the tracker for pycharm?
0
Comment actions Permalink
Never mind.  Go vote up http://youtrack.jetbrains.com/issue/PY-6740.  Looks like it is already there.
0

Please sign in to leave a comment.