Search code examples
pythonpathgeany

Append new pythonpath permanently in Geany IDE


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')

Solution

  • Add export PYTHONPATH=$PYTHONPATH:/mypath to /etc/profile and reboot.

    That should work for you.