<!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:47 PM, Vince Spicer wrote:
<blockquote
cite="mid:AANLkTi=01MfmJqaxPATzbzHS-Fgu9n-JctyYPcCR3xvx@mail.gmail.com"
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">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;">
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
class="Apple-style-span" style="font-family:
verdana,Arial,Helvetica,sans-serif; font-size: 12px;
line-height: 22px;">$PYTHONPATH env variable </span></div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<span class="Apple-style-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>
it didn't work<br>
</body>
</html>