Commit eb3ac195 authored by Saul Ibarra's avatar Saul Ibarra

Use bunded cacerts in httplib2 when running frozen


It's the responsibility of the build process to ship with
a valid resources/tls/cacerts.txt file.
parent d7ea6b9d
...@@ -47,6 +47,8 @@ __all__ = ['Blink'] ...@@ -47,6 +47,8 @@ __all__ = ['Blink']
if hasattr(sys, 'frozen'): if hasattr(sys, 'frozen'):
makedirs(ApplicationData.get('logs')) makedirs(ApplicationData.get('logs'))
sys.stdout.file = open(ApplicationData.get('logs/output.log'), 'a', 0) sys.stdout.file = open(ApplicationData.get('logs/output.log'), 'a', 0)
import httplib2
httplib2.CA_CERTS = Resources.get('tls/cacerts.txt')
class IPAddressMonitor(object): class IPAddressMonitor(object):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment