[Tutor] env variable
Alan Gauld
alan.gauld at btinternet.com
Tue May 20 02:04:59 CEST 2008
"james collins" <collinsjames9 at gmail.com> wrote
> just wondering how to set up my env variable?
> can't import scripts because my IDLE MacPython 2.5, can't find the
> module scripts.
You should try setting your PYTHONPATH environment vaqriable
in your bash shell.
.profile
or
.login
are the two files that you can use and I've forgotten which is
recommended for environment variables. Both work but one
can get called multiple times if I remember correctly.
> i created the file with textwrangler and stored them in my home
> folder in a folder i called python, on a macbook pro running mac os
> 10.5.2
In bash the line should look like:
export PYTHONPATH=~/python
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list