Re: Search path for python script

2007-09-13 Thread WGWhalley
This works for me under cygwin. Start the script with the line #! /usr/bin/python Place the script in a directory shown by the command echo $PATH Invoke the script using its name, i.e. test.py -- http://mail.python.org/mailman/listinfo/python-list

Re: Search path for python script

2007-09-12 Thread Peter Otten
Am Wed, 12 Sep 2007 14:40:30 -0700 schrieb grt: > I'm new to python, running it under cygwin. This must be easy but I > haven't figured it out. I'm trying to run a script by typing: > > python test.py > > where test.py is in a directory I've added to PYTHONPATH, but test.py > is not found. Perha

Re: Search path for python script

2007-09-12 Thread Steve Holden
grt wrote: > I'm new to python, running it under cygwin. This must be easy but I > haven't figured it out. I'm trying to run a script by typing: > > python test.py > > where test.py is in a directory I've added to PYTHONPATH, but test.py > is not found. Perhaps PYTHONPATH only applies to modules

Re: Search path for python script

2007-09-12 Thread grt
On Sep 12, 4:06 pm, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > On Sep 12, 4:40 pm, grt <[EMAIL PROTECTED]> wrote: > > > > > I'm trying to run a script by typing: > > > python test.py > > What happens if you just type: > > test.py or test > > and hit Enter? > > rd test gives the error: command

Re: Search path for python script

2007-09-12 Thread BartlebyScrivener
On Sep 12, 4:40 pm, grt <[EMAIL PROTECTED]> wrote: > > I'm trying to run a script by typing: > > python test.py > What happens if you just type: test.py or test and hit Enter? rd -- http://mail.python.org/mailman/listinfo/python-list

Search path for python script

2007-09-12 Thread grt
I'm new to python, running it under cygwin. This must be easy but I haven't figured it out. I'm trying to run a script by typing: python test.py where test.py is in a directory I've added to PYTHONPATH, but test.py is not found. Perhaps PYTHONPATH only applies to modules imported within a script.