[Tutor] Confusion with $PATH

Wayne srilyk at gmail.com
Fri Sep 25 16:51:11 CEST 2009


On Fri, Sep 25, 2009 at 9:39 AM, David Eric <ciik13 at gmail.com> wrote:

> Very new to python..getting accustomed to files, directories etc
> I installed a few versions of python and ended up with a very long PATH
> variable, do i need this or can i change it to something shorter?
> Doing an online tutorial one exercise was to move a simple program,
> helloworld into the PATH so i could run it just by typing it in terminal
> window....i moved it into /Library and says file not found..
> any advice?
> THe following is what comes up for PATH
>
>
> /Library/Frameworks/Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.0/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
>

add /home/yourname/.bin/ to the path (and create it if it doesn't exist).

My path looks like this (on Ubuntu):
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/wayne/.bin

I don't remember the syntax for adding files to the path, but a quick google
search should yield plenty of results.

HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090925/57c9e840/attachment.htm>


More information about the Tutor mailing list