sys.argv with quoted strings as option argument

Jeff Epler jepler at
Thu Dec 11 00:41:23 CET 2003

It certainly doesn't work this way on my Unix system.

[jepler at parrot jepler]$ ls -l
-rwxrwxr-x    1 jepler   jepler         48 Dec 10 17:40
[jepler at parrot jepler]$ cat
#!/usr/bin/env python
import sys
print sys.argv
[jepler at parrot jepler]$ ./ --includedir="/usr/include /usr/local/include" --libdir="/usr/lib /usr/local/lib"
['./', '--includedir=/usr/include /usr/local/include', '--libdir=/usr/lib /usr/local/lib']


More information about the Python-list mailing list