Rafal Dowgird schrieb:
Thanks for the reply.
Are you sure that it's worth adding quoting support for paths with embedded spaces to distutils is worth the effort ?
I know that spaces in paths of executables and DLLs cause endless problems on Windows and most of these can easily be avoided by installing program files to a non-space-containing path location on the disk.
I am far from insisting that this patch should be applied. There are some simpler options that could improve the situation:
- documenting it as a known bug with workaround - making distutils print a warning upon encountering a space in an argument
I would suppose the following solution for _nt_quote_args: IF the given string doesn't contain any '"' THEN quote the whole string as usual ELSE leave it as it is. (Reason is: you would split then arguments. eg. a" "b would become "a" "b" ) With this solution all existing code should work as usual. And it is possible for any code using spawn/_nt_quote_args using its own quoting schema. (Which means for bcppcompiler.py fixing the link method.) Kind regards Rene Liebscher