Spaces in path name

Tim Golden mail at timgolden.me.uk
Sun Mar 16 02:44:20 EDT 2008


joep wrote:
> 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.

Thanks for the info. I'll get on the case and put some examples
together with caveats.

TJG



More information about the Python-list mailing list