Masayuki Yamamoto added the comment:
I agree to add the suffix to solve ambiguous path on Cygwin. And I think the
patch should apply to all platforms having executable suffix.
Therefore, I modified your patch to remove #if directive for Cygwin, and I
changed title to spread covered platforms.
This patch uses EXE_SUFFIX that is the EXE defined on Makefile. If platform
doesn't have executable suffix, doesn't add anything process.
components: +Interpreter Core
title: sys.executable is ambiguous on Cygwin without .exe suffix -> Change
sys.executable to include executable suffix
Added file: http://bugs.python.org/file45137/sys-executable-suffix.patch
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list