Odd win32pipe.popen behavior

Neil Hodgson nhodgson at bigpond.net.au
Fri May 18 18:04:21 EDT 2001


Mark Wright:
> I've been trying to use win32pipe.popen with a command that has a
> space and an argument that has a space.  This requires that the
> arguments be quoted, like this (argv.py just prints sys.argv):
>
>     "c:\program files\python\python.exe" argv.py "a b c d"

   A low quality fix is to find out the short name of "Program Files" which
is usually "PROGRA~1" and use that instead. To find the short name check the
options of the dir command. dir /X worked on NT just now.

   Neil






More information about the Python-list mailing list