3👍
As tttthomasssss suggested, the answer is here: https://stackoverflow.com/a/22289136/519074.
Only this answer worked, the ones below it didn’t even though they look more useful.
Update – This is what worked for me:
For each virtualenv, put a file called something like terminalactivate.sh into /bin with this:
#!/bin/sh
source ~/.bashrc
source $(cd `dirname "${BASH_SOURCE[0]}"` && pwd)/activate
Then in pycharm/idea settings choose this for shell path:
/bin/bash --rcfile ~/virtualenv/sff/bin/terminalactivate.sh
0👍
I know this is a very old question, but if you’re using fish shell, you can also do this with the -C flag. For example I use it to set a different theme on shells open inside intellij by setting shell path to:
/opt/homebrew/bin/fish -C "fish_config theme choose 'Solarized Light'"
- [Django]-Postgresql ArrayField vs ForeignKey? which one is performant?
- [Django]-JS: how generate the product array for Google Analytics dataLayer?
- [Django]-Speed up often used Django random query
- [Django]-Django/Celery can't find importlib
- [Django]-Lots of socket errors with celery eventlet tasks
Source:stackexchange.com