mercurial/sslutil.py
changeset 24614 241d98d84aed
parent 24291 760a86865f80
child 25415 21b536f01eda
--- 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/'))