Get the complete command line as-is

wangzq wangzq at gmail.com
Tue Sep 11 23:00:00 EDT 2007


Hello,

I'm passing command line parameters to my browser, I need to pass the
complete command line as-is, for example:

test.py "abc def" xyz

If I use ' '.join(sys.argv[1:]), then the double quotes around "abc
def" is gone, but I need to pass the complete command line ("abc def"
xyz) to the browser, how can I do this?

I'm on Windows.

Thanks.




More information about the Python-list mailing list