Activating virtuaenv with custom script
Answered
I would like to run a custom script in order to activate my python virtualenv while using Pycharm.
I have a `.sh` that run some logic to set environment variables (and other stuff) and in the end activate the virtualenv (with `source /usr/local/bin/virtualenvwrapper.sh`) how can I run it when opening a new terminal window [instead of running the "normal" activation script (`source my_project/bin/activate`)]?
Thanks
Please sign in to leave a comment.
Hi,
You could go to Settings/Preferences | Tools | Terminal and uncheck 'Activate virtualenv' option. Then you can run your script when open the terminal. Unfortunately, there is no such feature to run this script on startup yet.
Thanks