[Tutor] PYTHONPATH

Dinakar Desai.Dinakar@mayo.edu
Sun, 25 Feb 2001 07:04:59 -0600


This is a multi-part message in MIME format.
--------------526C824442FB29C12D1DA7B9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Bruce:

how to change the path shown by sys.path. Does one need to change PYTHONPATH
in .bashrc or someother file. I would appreciate, if some one on the group
clarify this.

Thank you.

Dinakar


Bruce Sass wrote:

> On Sat, 24 Feb 2001 michaelbaker@operamail.com wrote:
> > I'm  LinuxPPC (based on Red Hat 6.1), the python interpreter works just
> > fine, but another program (Blender) which has a pyhton API cannot find
> > modules to import. I'm trying to change my .cshrc file to set PYTHONPATH
> > without luck. I've added this line to my .cshrc:
> >
> > setenv PYTHONPATH "/usr/lib/python1.5/"
> >
> > this doesn't work - help???
> > thanks
>
> This is what python 1.5.2 thinks the path is on my Debian box,
>
> >>> sys.path
> ['', '/usr/lib/python1.5/', '/usr/lib/python1.5/plat-linux2',
> '/usr/lib/python1.5/lib-tk', '/usr/lib/python1.5/lib-dynload',
> '/usr/local/lib/python1.5/site-packages',
> '/usr/local/lib/site-python', '/usr/lib/python1.5/site-packages',
> '/usr/lib/python1.5/site-packages/HTMLgen',
> '/usr/lib/python1.5/site-packages/PIL',
> '/usr/lib/python1.5/site-packages/graphics',
> '/usr/lib/python1.5/site-packages/Numerical',
> '/usr/lib/site-python']
>
> - Bruce
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor

--------------526C824442FB29C12D1DA7B9
Content-Type: text/x-vcard; charset=us-ascii;
 name="desai.dinakar.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Dinakar
Content-Disposition: attachment;
 filename="desai.dinakar.vcf"

begin:vcard 
n:Desai;Dinakar 
tel;work:507-266-2831
x-mozilla-html:FALSE
org:Mayo Foundation;Clinical Trials Section
adr:;;;Rochester ;MN;55905;USA
version:2.1
email;internet:desai.dinakar@mayo.edu
x-mozilla-cpt:;0
fn:Dinakar Desai
end:vcard

--------------526C824442FB29C12D1DA7B9--