[Techtalk] Python module search path

Wim De Smet kromagg at gmail.com
Mon Mar 28 07:57:28 UTC 2011


Hi

On Sat, Mar 26, 2011 at 12:56 AM, David Sumbler <david at aeolia.co.uk> wrote:
> 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?

Have you tried setting it in .profile? .gnomerc should work too, but I
can't find any documentation on it.

regards
Wim


More information about the Techtalk mailing list