Indicates cacert.pem file when the application is frozen
This commit is contained in:
parent
df006b9945
commit
aba5c4cc59
4966
src/cacert.pem
Normal file
4966
src/cacert.pem
Normal file
File diff suppressed because it is too large
Load Diff
6
src/fixes/__init__.py
Normal file
6
src/fixes/__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import fix_requests
|
||||
|
||||
def setup():
|
||||
fix_requests.fix()
|
||||
|
8
src/fixes/fix_requests.py
Normal file
8
src/fixes/fix_requests.py
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import requests
|
||||
import paths
|
||||
import os
|
||||
|
||||
|
||||
def fix():
|
||||
os.environ["REQUESTS_CA_BUNDLE"] = paths.app_path("cacert.pem")
|
@ -1,4 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
import fixes
|
||||
if hasattr(sys, "frozen"):
|
||||
fixes.setup()
|
||||
import platform
|
||||
import languageHandler
|
||||
import widgetUtils
|
||||
|
Loading…
Reference in New Issue
Block a user