[Tutor] PYTHONPATH-corrected
Alan Gauld
alan.gauld at btinternet.com
Wed Jul 1 09:55:17 CEST 2009
"Steve Willoughby" <steve at alchemy.com> wrote
>> in directories for chapers. Now I am on modules, and some
>> are reused in later chapters. I have set up a directory for
>> the modules. How do I add it to my PYTHONPATH?
> So, for example, in a bash/sh shell, you'd say:
>
> export PYTHONPATH="/path/to/my/modules"
And you can add multiple directories by separating them with colons:
export
PYTHONPATH="/path/to/my/modules:/path/to/more/modules:/path/ytoyet/more"
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list