"Steve Willoughby" <[email protected]> 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/
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor