[Tutor] re: Python from WINNT command line question

alan.gauld@bt.com alan.gauld@bt.com
Tue, 28 May 2002 17:31:52 +0100


> I think figured out my solution.

> This worked (though I'm not sure why):

> E:\WINNT4>f:\python22\foo.py

This worked because you provided the full path to 
the .py file and windows file associations told it 
to run python to execute the file. Since the path 
to python is set as part of the association it knows 
how to find python. This exactly the same(*) as 
when you double click the foo.py file in explorer.

(*)ISTR Tim Peters once explaining a subtle difference 
between how Exploder does it and how DOS does it but 
the basic principle is the same...

Alan G