win32+popen4

Robin Becker robin at jessikat.fsnet.co.uk
Fri Mar 1 05:40:45 EST 2002


OK to be more precise I'm executing like this


Python 2.1.2 (#31, Jan 15 2002, 17:28:11) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> import sys
...
>>> cmd
'"C:\\Program Files\\ReportLab\\Demo\\rml2pdf.exe" "C:\\Program Files\\ReportLab\\Demo\\rlextra\\pageCatcher\\PageCatchI
ntro.rml" --outdir="C:\\Program Files\\ReportLab\\Demo\\Doc"'
>>> i, o = os.popen4(cmd,'t')
>>> t = o.read()
>>> print t
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

>>>

I can run the command directly
C:\Program Files\ReportLab\Demo>"C:\\Program Files\\ReportLab\\Demo\\rml2pdf.exe" "C:\\Program Files\\ReportLab\\Demo\\r
lextra\\pageCatcher\\PageCatchIntro.rml" --outdir="C:\\Program Files\\ReportLab\\Demo\\Doc"

C:\Program Files\ReportLab\Demo>

so somewhere something odd is happening.

This is win2k.
-- 
Robin Becker



More information about the Python-list mailing list