Activating virtuaenv with custom script
已回答
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
请先登录再写评论。
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