os.popen() not executing command on windows xp
Gabriel Genellina
gagsl-py at yahoo.com.ar
Thu Jan 11 04:54:51 EST 2007
At Thursday 11/1/2007 06:42, nic wrote:
>a = os.popen('"c:\Program Files\Grisoft\AVG Free\avgscan.exe"
>"c:\program files\temp1\test1.txt"')
Your string contains backquotes, and they have to be escaped.
Either use a raw string: os.popen(r'"c:\Program...) or double all
backquotes: os.popen('"c:\\Program...)
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
More information about the Python-list
mailing list