Steve Dower <steve.do...@python.org> added the comment:

I agree that explicitly normalizing in PC/getpathp.c is the correct approach.

As far as I'm aware, GetModuleFileNameW(NULL) can never fail other than a 
buffer that is too small, so that whole function can probably be simplified to 
abort if it happens and just remove the PATH search.

Also, we should use a similar process for PathCchCanonicalizeEx as we already 
use for PathCchCombineExW in this file to avoid failing on earlier OS versions.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32457>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to