[Tutor] Python development-moving from Windows to Linux (finally)

Tony Cappellini tony at tcapp.com
Thu Apr 22 14:32:34 EDT 2004



On Thu, 22 Apr 2004, Chris Lott wrote:

> Tony Cappellini wrote:
>
> >
> > I've installed Python on a linux system, and now I'm trying to understand
> > how to better configure my environment for executing python scripts that
> > I've written.
>
> I think you have two paths confused. As I understand it, $PYTHONPATH is
> just for the location of Python executables, modules, etc.
>
> If you want to run your scripts without specifying the location, they
> need to be somewhere in your $PATH, which specifies where the shell
> looks for executables when you try to run them. So just add
> /home/tony/bin to your $PATH variable.
>

This is already in the path. It was a default, I didn't add it.
This is why I don't understand why I need to use
/home/tony/bin/myscript.py to run my scripts.





More information about the Tutor mailing list