difference between invocation of python script on unix and microsoft?

Adrian Eyre a.eyre at optichrome.com
Tue Nov 30 12:02:42 CET 1999


> Can anyone tell me in what ways using python under microsoft is
> different from python under unix?

If you have associated .py files with python.exe, then you can do:

myfile.py < myinput.txt

Otherwise it's:

python myfile.py < myinput.txt

Although I did find with MKS Toolkit installed, if the first line is:

#!/usr/bin/env python

Then you can name the script 'myfile' and do:

. myfile < myinput

--------------------------------------------
Adrian Eyre <mailto:a.eyre at optichrome.com>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233  Fax: +44 1483 760 644
http://www.optichrome.com 
--------------------------------------------





More information about the Python-list mailing list