Newbie subprocess question

MRAB python at
Fri Nov 26 01:27:59 CET 2010

On 25/11/2010 22:56, Hugo Léveillé wrote:
> I'm starting various application using subprocess.Popen without any
> problem. The problem is with application inside "Program Files". It
> looks like subprocess is stopping the application string after
> "Program". I tried puting the programe name inside double quote like
> '"Program File*..."'. No luck.
> How can I start a app inside this folder ?
Try passing the application path and its arguments (if any) as a list
like this:

     subprocess.Popen([app_path, arg1, arg2])

More information about the Python-list mailing list