sys.argv problem in Win 2k

Duncan Booth duncan at NOSPAMrcp.co.uk
Thu Apr 24 09:19:02 EDT 2003


abpillai at lycos.com (Anand B Pillai) wrote in 
news:bd993a2f.0304240506.5b206f3d at posting.google.com:

>  As you see the arguments I pass are not being printed!
> This is the case with all my scripts now. They were working
> well when I was on a WinNT workstation :-?

What does the command 'assoc .py' print?
What does the command 'ftype Python.File' print?

Running a .py file depends on the file association which the assoc command 
will show, and if it is Python.File the ftype command will show how the 
command line is passed.

They should look something like this:

D:\temp>ftype Python.File
Python.File=D:\Python22\python.exe "%1" %*

D:\temp>assoc .py
.py=Python.File

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?




More information about the Python-list mailing list