
Description
Originally reported by: joeyespo (Bitbucket: joeyespo, GitHub: joeyespo)
I have Python installed in C:\Program Files (x86)\Python
(for legacy reasons--it's kind of late to move it now), and any console_script
I install from PyPI breaks now. Running the script causes a "failed to create process" error.
I noticed that older console_scripts were working, and turns out it's because they were quoted. Ex: #!"C:\Program Files (x86)\Python\python.exe"
Manually adding quotes around the newly installed projectname-script.py
fixes it.
It looks like the culprit may have been the fix in #188. From that issue:
If it is possible to detect being on a posix platform (probably not that easy?), we could just skip the escaping, as it is never beneficial. If this is not possible, maybe just skip the escaping all together? The benefit seems very platform specific.
Turns out skipping escaping all together just threw the problem back over the fence to Windows. Perhaps it'd be best to detect the platform? Escaping is indeed a platform-specific thing.