On Mon, Nov 1, 2010 at 3:41 PM, Chris King <g.nius...@gmail.com> wrote:

>  Dear Tutors,
>    When I try to import a module, how can I make it look in certain
> directories for them easily.
> Sincerely,
>    Chris
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>

Hello Chris

You can manage you path from within your script,

import sys
sys.path.append("/home/user/lib")

Or in bash you can edit your  $PYTHONPATH env variable
echo $PYTHONPATH


-- 
Vince Spicer


-- 
Sent from Ubuntu
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to