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
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
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
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
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
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.