<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 11/1/2010 5:57 PM, Vince Spicer wrote:
<blockquote
cite="mid:AANLkTinNSjCDsPSeLAD97JY9zt-YHygpVFHg7zpw23SU@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Mon, Nov 1, 2010 at 3:54 PM, Chris
King <span dir="ltr"><<a moz-do-not-send="true"
href="http://g.nius.ck">g.nius.ck</a>@<a
moz-do-not-send="true" href="http://gmail.com">gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<div>
<div class="h5"> On 11/1/2010 5:47 PM, Vince Spicer wrote:
<blockquote type="cite"><br>
<br>
<div class="gmail_quote">On Mon, Nov 1, 2010 at 3:41
PM, Chris King <span dir="ltr"><<a
moz-do-not-send="true" href="http://g.nius.ck"
target="_blank">g.nius.ck</a>@<a
moz-do-not-send="true" href="http://gmail.com"
target="_blank">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;"> Dear Tutors,<br>
When I try to import a module, how can I make
it look in certain directories for them easily.<br>
Sincerely,<br>
Chris<br>
_______________________________________________<br>
Tutor maillist - <a moz-do-not-send="true"
href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a moz-do-not-send="true"
href="http://mail.python.org/mailman/listinfo/tutor"
target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote>
</div>
<div><br>
</div>
<div>Hello Chris</div>
<br>
You can manage you path from within your script,
<div><br>
</div>
<div>import sys</div>
<div>sys.path.append("/home/user/lib")<br>
<div><br>
</div>
<div>Or in bash you can edit your <span
style="font-family:
verdana,Arial,Helvetica,sans-serif; font-size:
12px; line-height: 22px;">$PYTHONPATH env
variable </span></div>
<div> <span style="font-family:
verdana,Arial,Helvetica,sans-serif; font-size:
12px; line-height: 22px;">echo $PYTHONPATH</span></div>
<div><br clear="all">
<br>
-- <br>
Vince Spicer
<div><br>
</div>
<div><br>
</div>
<div><span style="font-family: arial,sans-serif;
font-size: 13px; border-collapse: collapse;">-- </span></div>
<div><span style="font-family: arial,sans-serif;
font-size: 13px; border-collapse: collapse;">Sent
from Ubuntu</span></div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
So doing it in cmd windows will permanently change it?<br>
</div>
</blockquote>
</div>
<br>
<br>
<div>the first way with work for Window, the second is for Linux
or posix systems</div>
<div><br>
</div>
<div>Sorry I can't help with PYTHONPATH on windows.<br clear="all">
<br>
-- <br>
Vince Spicer
<div>
<br>
</div>
<div><br>
</div>
<div><span style="font-family: arial,sans-serif; font-size:
13px; border-collapse: collapse;">-- </span></div>
<div><span style="font-family: arial,sans-serif; font-size:
13px; border-collapse: collapse;">Sent from Ubuntu</span></div>
<br>
</div>
</blockquote>
I want a permanent change.<br>
</body>
</html>