aculich/virtualenv.el — Issue #7: env PATH set from explicit virtualenv-workon but not dir-locals.el
Author: gwtaylor
Created: 2012-02-29 15:45:43+00:00
State: open

Hello,
Thanks for your work on this module.
I am using Aquamacs 2.4 on OSX.

I've noticed that when my virtualenv is automatically set using a dir-locals.el, (getenv "PATH") does not show my virtualenv bin dir. The name of the virtualenv appears properly in the mode line, and the correct python shell opens up. But, for example, using pep8 when the pep8 binary lives in my vitualenv does not work.

However, when I explicitly invoke virtualenv-workon and choose that virtualenv, the path is indeed prepended to my env PATH (verified with (getenv "PATH").

There may be an issue with the path not getting set when the environment is automatically invoked using dir-locals?