[Techtalk] Python module search path

David Sumbler david at aeolia.co.uk
Fri Mar 25 23:56:48 UTC 2011

I am running Gnome 2.32 in Ubuntu 10.10.

I have a line in my .bashrc file setting and exporting PYTHONPATH so
that the directory where I keep my own Python files is included.  If I
run 'python3' or 'idle3' from an xterm, then I can import these modules
without a problem.

However, if I start Idle from the Gnome menu, it doesn't know where to
find these modules.  How do I set PYTHONPATH for Gnome, or achieve a
similar result?


More information about the Techtalk mailing list