Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 42523:49998d5ba66a
pycompat: make fewer assumptions about sys.executable
There are many Python "bundlers" which create an archive to run a Python binary
from, and they may not set sys.executable at all - handle that case properly,
especially to run tests.
Differential Revision: https://phab.mercurial-scm.org/D6575
author | Rodrigo Damazio Bovendorp <rdamazio@google.com> |
---|---|
date | Tue, 25 Jun 2019 19:28:41 -0700 |
parents | 810f66b468cd |
children | eb7bd7d64a9d |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Thu Jun 27 11:39:35 2019 +0200 +++ b/mercurial/debugcommands.py Tue Jun 25 19:28:41 2019 -0700 @@ -1240,7 +1240,7 @@ # Python fm.write('pythonexe', _("checking Python executable (%s)\n"), - pycompat.sysexecutable) + pycompat.sysexecutable or _("unknown")) fm.write('pythonver', _("checking Python version (%s)\n"), ("%d.%d.%d" % sys.version_info[:3])) fm.write('pythonlib', _("checking Python lib (%s)...\n"),