newbie question about PYTHONPATH
Doug Epling
wdepli at mikrotec.com
Sat Feb 19 12:25:12 EST 2011
The best way I have found is to place that definition of your PYTHONPATH
in your .bash_profile in your home directory and export it from there.
PYTHONPATH=/home/foo/prog/learning_python
export PYTHONPATH
This way your PYTHONPATH is picked up each time you log on. You
might have to restart IDLE for the changes you mention below to take effect.
On 2/15/2011 12:49 PM, Tim Hanson wrote:
> I am to the point in _Learning_Python_ where functions are introduced.
>
> I decided to experiment by putting a function into a file and importing it
> into Idle. Of course, Idle couldn't find it, so I executed the following
> command in Bash:
>
> PYTHONPATH=/home/foo/prog/learning_python
> export PYTHONPATH
> env | grep PYTHONPATH
>
> ~$PYTHONPATH=/home/foo/prog/learning_python
>
> Idle still won't find it. I'm doing something wrong?
More information about the Python-list
mailing list