How can I add a new pythonpath in Geany? Is something in the preferences/options that I'm missing? I tried adding this in .bashrc , but it didn't work.
export PYTHONPATH=/mypath
What I do now is to add these two lines in the top of every script, but it's not good as a permanent solution:
import sys
sys.path.append('mypath')
Add export PYTHONPATH=$PYTHONPATH:/mypath to /etc/profile and reboot.
That should work for you.
You can also do it without modifying any system configuration.
In Geany go to Edit > Preferences > Tools
Terminal field should say something like:
x-terminal-emulator -e "/bin/sh %c"
Change it to:
x-terminal-emulator -e "env PYTHONPATH=/mypath /bin/sh %c"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With