diff -r 3fcaf0f660ce -r 10b17ed9b591 mercurial/sslutil.py --- a/mercurial/sslutil.py Tue Dec 20 00:02:24 2016 +0530 +++ b/mercurial/sslutil.py Tue Dec 20 00:20:07 2016 +0530 @@ -669,9 +669,9 @@ cacerts file """ if (pycompat.sysplatform != 'darwin' or - util.mainfrozen() or not sys.executable): + util.mainfrozen() or not pycompat.sysexecutable): return False - exe = os.path.realpath(sys.executable).lower() + exe = os.path.realpath(pycompat.sysexecutable).lower() return (exe.startswith('/usr/bin/python') or exe.startswith('/system/library/frameworks/python.framework/'))