change fix position to before anything else starts

This commit is contained in:
Victor Shyba 2018-05-24 17:12:47 -03:00 committed by Lex Berezhny
parent 513f5d0568
commit 03968f377e
2 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,4 @@
import binascii
import certifi
import logging.handlers
import mimetypes
import os
@ -233,10 +232,6 @@ class Daemon(AuthJSONRPCServer):
@defer.inlineCallbacks
def setup(self):
# Set SSL_CERT_FILE env variable for Twisted SSL verification on Windows
if 'win' in sys.platform:
os.environ['SSL_CERT_FILE'] = certifi.where()
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
configure_loggly_handler()

View file

@ -1,3 +1,9 @@
import certifi
# Set SSL_CERT_FILE env variable for Twisted SSL verification on Windows
# This needs to happen before anything else
if 'win' in sys.platform:
os.environ['SSL_CERT_FILE'] = certifi.where()
from lbrynet.core import log_support
import argparse