Proper Method for having VirtualEnvWrapper postactivate run for Pycharm Project
Answered
I'm using virtualenvwrapper and have some custom postactivate and predeactivate scripts I need to run for setting environment variables.
What is the appropriate way to have my pycharm project call the postactivate so that it is available along with all the python modules in the same virtual env at runtime? How do I also ensure this gets run so they are available in the python console of pycharm?
My research suggests that pycharm does not support virtualenvwrapper, and that you have to hack around this. Is that correct?
This is the closest solution I've found: https://gist.github.com/twidi/049c1eb6ed359d3e9e7f
Please sign in to leave a comment.
That's true, PyCharm doesn't support it yet. Vote for the corresponding feature request https://youtrack.jetbrains.com/issue/PY-16440