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

2009-10-23 Thread Stuart Sears
On 21/10/09 23:12, Luke Paireepinart wrote: > On Wed, Oct 21, 2009 at 4:56 PM, Jason Willis > 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### That should work, but you'll have to tell the she

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

2009-10-22 Thread Eric L. Howard
If you're using bash for your shell - it looks like you need to re-source your .bashrc. You can do this from the command line source ~/.bashrc or log out and log back in. ~elh On Wed, Oct 21, 2009 at 5:56 PM, Jason Willis wrote: > so i changed the .bashrc and added at the end : > PATH="/home/

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

2009-10-22 Thread Alan Gauld
"Luke Paireepinart" wrote So what you really want to do is export PATH=$PATH:/home/compy/pythons from the command line. Unless I don't understand what .bashrc is for which is definitely possible, I'm a Windoze programmer. bashrc is the equivalent of the old DOS autoexec.bat. It gets run e

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

2009-10-21 Thread vince spicer
On Wed, Oct 21, 2009 at 3:56 PM, Jason Willis 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 > co...@compy-laptop:~/pythons$ herosinventory.py > herosinventory.py: command not f

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

2009-10-21 Thread Skipper Seabold
On Wed, Oct 21, 2009 at 5:56 PM, Jason Willis 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 > co...@compy-laptop:~/pythons$ herosinventory.py > herosinventory.py: command not f

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

2009-10-21 Thread Luke Paireepinart
On Wed, Oct 21, 2009 at 5:12 PM, Luke Paireepinart wrote: > > > On Wed, Oct 21, 2009 at 4:56 PM, Jason Willis 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### > > No, you have to set the environ

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

2009-10-21 Thread Luke Paireepinart
On Wed, Oct 21, 2009 at 4:56 PM, Jason Willis 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### No, you have to set the environment variable from within the path, not modifying .bashrc. $PATH refers

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

2009-10-21 Thread Jason Willis
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 co...@compy-laptop:~/pythons$ herosinventory.py herosinventory.py: command not found co...@compy-laptop:~/pythons$ herosinventory.py herosinventory

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

2009-10-21 Thread Lie Ryan
Jason Willis wrote: hi everyone, sorry for the rather boring question but i'm having serious issues getting my programs to run from the command line without having to type "python" in-front of them. I've tried a lot of different variations on the #!/usr/bin/ etc. line and have come up with th

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

2009-10-21 Thread vince spicer
On Wed, Oct 21, 2009 at 12:33 PM, vince spicer wrote: > > > On Wed, Oct 21, 2009 at 12:31 PM, vince spicer wrote: > >> >> >> On Wed, Oct 21, 2009 at 12:21 PM, Jason Willis >> wrote: >> >>> hi everyone, >>> >>> sorry for the rather boring question but i'm having serious issues >>> getting my prog

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

2009-10-21 Thread Steve Willoughby
On Wed, Oct 21, 2009 at 02:21:23PM -0400, Jason Willis wrote: > hi everyone, > > sorry for the rather boring question but i'm having serious issues getting > my programs to run from the command line without having to type "python" > in-front of them. I've tried a lot of different variations on the

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

2009-10-21 Thread Eric L. Howard
The directory you are sitting in doesn't appear to be in your path... [ehow...@preacher ~/bin]$ ls macosver macosver* [ehow...@preacher ~/bin]$ macosver 10.5.8 [ehow...@preacher ~/bin]$ echo $PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:~/bin:/opt/local/bin:/opt/local/sbin ~elh On Wed, Oct

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

2009-10-21 Thread vince spicer
On Wed, Oct 21, 2009 at 12:31 PM, vince spicer wrote: > > > On Wed, Oct 21, 2009 at 12:21 PM, Jason Willis > wrote: > >> hi everyone, >> >> sorry for the rather boring question but i'm having serious issues getting >> my programs to run from the command line without having to type "python" >> in

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

2009-10-21 Thread Amos Anderson
Are you by chance editing the file in Windows? Have you verified that python is in /usr/bin? In some cases it could be in a different location. On Wed, Oct 21, 2009 at 1:21 PM, Jason Willis wrote: > hi everyone, > > sorry for the rather boring question but i'm having serious issues getting > my p

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

2009-10-21 Thread vince spicer
On Wed, Oct 21, 2009 at 12:21 PM, Jason Willis wrote: > hi everyone, > > sorry for the rather boring question but i'm having serious issues getting > my programs to run from the command line without having to type "python" > in-front of them. I've tried a lot of different variations on the > #!/us

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

2009-10-21 Thread Jason Willis
hi everyone, sorry for the rather boring question but i'm having serious issues getting my programs to run from the command line without having to type "python" in-front of them. I've tried a lot of different variations on the #!/usr/bin/ etc. line and have come up with the following every time: