Spaces in path name

Tim Golden mail at timgolden.me.uk
Sat Mar 15 08:08:21 EDT 2008


joep wrote:
> I had the same problem recently with subprocess.popen, when there is a
> space in the executable and a space in an additional argument as in
> the acrobat example. I finally found a past thread in this news group
> that explained that you have to use two (2) leading double quotes, and
> as on the command line all arguments with spaces have to be quoted.

Thanks for this, joep. I've added a how-do-i to my website
covering the different cases, I hope. This comes up often
enough that maybe next time we can just point someone there
first time!

TJG

http://timgolden.me.uk/python/win32_how_do_i/run-a-command-with-a-space-in-it.html




More information about the Python-list mailing list