equal
deleted
inserted
replaced
127 system |
127 system |
128 * presumably is an Apple Python that uses Apple OpenSSL which has patches |
128 * presumably is an Apple Python that uses Apple OpenSSL which has patches |
129 for using system certificate store CAs in addition to the provided |
129 for using system certificate store CAs in addition to the provided |
130 cacerts file |
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 return False |
133 return False |
134 exe = (sys.executable or '').lower() |
134 exe = os.path.realpath(sys.executable).lower() |
135 return (exe.startswith('/usr/bin/python') or |
135 return (exe.startswith('/usr/bin/python') or |
136 exe.startswith('/system/library/frameworks/python.framework/')) |
136 exe.startswith('/system/library/frameworks/python.framework/')) |
137 |
137 |
138 def _defaultcacerts(): |
138 def _defaultcacerts(): |
139 """return path to CA certificates; None for system's store; ! to disable""" |
139 """return path to CA certificates; None for system's store; ! to disable""" |