Odd win32pipe.popen behavior

Neil Hodgson nhodgson at bigpond.net.au
Sat May 19 00:04:21 CEST 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.


More information about the Python-list mailing list