[Tutor] i can't for the life of me get "#! /usr/bin/env python" or "#!/usr/bin/python" to work

Skipper Seabold jsseabold at gmail.com
Thu Oct 22 00:28:16 CEST 2009


On Wed, Oct 21, 2009 at 5:56 PM, Jason Willis <chaoticslacker at gmail.com> wrote:
> so i changed the .bashrc and added at the end :
> PATH="/home/compy/pythons:$PATH"  ###which is the actual path to my python
> proggies###
>
> and i still get
> compy at compy-laptop:~/pythons$ herosinventory.py
> herosinventory.py: command not found
> compy at compy-laptop:~/pythons$ herosinventory.py
> herosinventory.py: command not found
> compy at compy-laptop:~/pythons$ herosinventory
> herosinventory: command not found
> compy at compy-laptop:~/pythons$
>
>
> I must be retarded. I'm sorry , what am I doing wrong here?
>

You might need to restart X (or just the terminal, can't remember) or
type "source ~/.bashrc" (no quotes) at the command line, if you added
the correct line to your bash profile.


More information about the Tutor mailing list