How to run Python file?

Ant antroy at gmail.com
Sat Sep 2 13:30:44 EDT 2006


zefciu wrote:
> Pontus Ekberg wrote:
...
> > $ python test.py
> >
> > or
> >
> > $ ./test.py (if test.py is executable)
> >
> >
> Thats if you use un*x.  If you word under windows, the first would work,

As would:

> test.py

Assuming python grabbed the .py extensions correctly (which it shouold
have done with any recent version).




More information about the Python-list mailing list