use certifi to provide ssl certs if missing
parent
9c5616139a
commit
402b05a3b9
|
|
@ -8,4 +8,5 @@ pefile==2019.4.18
|
||||||
PyInstaller==3.4
|
PyInstaller==3.4
|
||||||
PyQt5==5.9.2
|
PyQt5==5.9.2
|
||||||
https://github.com/danthedeckie/simpleeval/archive/41c99b8e224a7a0ae0ac59c773598fe79a4470db.zip
|
https://github.com/danthedeckie/simpleeval/archive/41c99b8e224a7a0ae0ac59c773598fe79a4470db.zip
|
||||||
sip==4.19.8
|
sip==4.19.8
|
||||||
|
certifi
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
import ssl
|
||||||
|
import certifi
|
||||||
|
import os
|
||||||
|
|
||||||
|
if ssl.get_default_verify_paths().cafile is None:
|
||||||
|
os.environ['SSL_CERT_FILE'] = certifi.where()
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from PyQt5 import QtWidgets, QtCore
|
from PyQt5 import QtWidgets, QtCore
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue