Spaces in path name

joep josef.pktd at gmail.com
Sat Mar 15 17:47:08 EDT 2008


On Mar 15, 5:42 pm, joep <josef.p... at gmail.com> wrote:
> >http://timgolden.me.uk/python/win32_how_do_i/run-a-command-with-a-spa...
>
> Note: this works for subprocess.call but for subprocess.Popen this
> does not work if there are two arguments in the command line with
> spaces. Especially, even after trying out many different versions, I
> never managed to get subprocess.Popen to work, when both the
> executable and one argument have spaces in the file path.
>

Sorry, incomplete sentence

Especially, even after trying out many different versions, I never
managed to get subprocess.Popen to work '''when command line is given
as a *list* argument to subprocess.Popen'''
in the case when both the executable and one argument have spaces in
the file path.

joe



More information about the Python-list mailing list