?sys.argv values more literally?

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Fri Apr 28 18:15:48 CEST 2000

Norman Shelley wrote in comp.lang.python:
> I need   argv to look like this:
> ["frontend", "-ver", "1.0", "word1", "word2",  '"word three"',
> '"word(three)"']
> where words that were quoted on the command line are strings with
> beginning and ending quotes in the argv.
> Any way to do this or get around this problem?

Can't you just quote every argument?

Remco Gerlich,  scarblac at pino.selwerd.nl
  6:14pm  up 53 days,  6:31,  8 users,  load average: 0.18, 0.24, 0.13

More information about the Python-list mailing list