Windows XP - cron or scheduler for Python?
Ivan Voras
iv at an.voras.fer.hr
Mon Jun 21 10:56:36 EDT 2004
Peter Hansen wrote:
> Larry Bates wrote:
>
>> 2) Always call Python and have it run the application.
>> Don't just try to run progname.py.
>
>
> This actually works, though, at least on my system. It
> might be because I inserted .py in the PATHEXT env var
> globally, though I thought it was just because running
> a .py is possible simply by clicking on it in Explorer
> (ie. the File Association does the job).
No, putting .py in PATHEXT is necessary. That way, you can run python
programs from the command line (cmd) using just "scriptname", without the
extension! (it performs just like .bat, .exe and similar files)
More information about the Python-list
mailing list