Spaces in path name

Tim Golden mail at timgolden.me.uk
Mon Mar 17 07:34:56 EDT 2008


Gertjan Klein wrote:
> joep wrote:
> 
>> * If shell=True is required, then the executable is a build-in shell
>> command, which does not contain spaces, and, therefore, has no
>> problems
> 
> This is only true when you are referring to directly executable files.
> However, Shell=True is also required when you want to "execute" a file
> by it's association. For example, if you want to execute a ".pyw" file
> directly (i.e., by using whichever python executable is associated with
> that extension), you need Shell=True.

Thanks for that clarification. I hadn't tried that path.

TJG



More information about the Python-list mailing list