diff -r f8bc3de9b343 -r 241d98d84aed mercurial/sslutil.py --- a/mercurial/sslutil.py Fri Apr 03 18:19:24 2015 -0400 +++ b/mercurial/sslutil.py Sat Apr 04 14:56:18 2015 +0900 @@ -129,9 +129,9 @@ for using system certificate store CAs in addition to the provided cacerts file """ - if sys.platform != 'darwin' or util.mainfrozen(): + if sys.platform != 'darwin' or util.mainfrozen() or not sys.executable: return False - exe = (sys.executable or '').lower() + exe = os.path.realpath(sys.executable).lower() return (exe.startswith('/usr/bin/python') or exe.startswith('/system/library/frameworks/python.framework/'))