##// END OF EJS Templates
ssl: resolve symlink before checking for Apple python executable (issue4588)...
Yuya Nishihara -
r24614:241d98d8 default
parent child Browse files
Show More
@@ -129,9 +129,9 b' def _plainapplepython():'
129 129 for using system certificate store CAs in addition to the provided
130 130 cacerts file
131 131 """
132 if sys.platform != 'darwin' or util.mainfrozen():
132 if sys.platform != 'darwin' or util.mainfrozen() or not sys.executable:
133 133 return False
134 exe = (sys.executable or '').lower()
134 exe = os.path.realpath(sys.executable).lower()
135 135 return (exe.startswith('/usr/bin/python') or
136 136 exe.startswith('/system/library/frameworks/python.framework/'))
137 137
General Comments 0
You need to be logged in to leave comments. Login now