[python-win32] Quoting Blanks in Command Line
Andreas Maurer
amapy at snafu.de
Tue Jul 15 17:33:10 EDT 2003
Hi folks,
I've a little script which gets a list of files from
the command line.
myscript.py -f file1,file2,"file3 with blank"
Some filenames will contain blanks and
sys.argv[1:] will give me that result:
['-f,'file1,file2,"file3','with','blanks"']
and not the expected list
['-f,'file1,file2,"file3 with blanks"']
I've tried to quote the blanks "\ ",
but this attempt doesn't work.
Has anybody an idea to fix this problem?
Many thanks
Andi
More information about the Python-win32
mailing list