Indicates cacert.pem file when the application is frozen

This commit is contained in:
Manuel Cortez 2016-02-21 08:16:36 -06:00
parent df006b9945
commit aba5c4cc59
4 changed files with 4984 additions and 0 deletions

4966
src/cacert.pem Normal file

File diff suppressed because it is too large Load Diff

6
src/fixes/__init__.py Normal file
View File

@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
import fix_requests
def setup():
fix_requests.fix()

View 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")

View File

@ -1,4 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys
import fixes
if hasattr(sys, "frozen"):
fixes.setup()
import platform import platform
import languageHandler import languageHandler
import widgetUtils import widgetUtils