forked from LBRYCommunity/lbry-sdk
change fix position to before anything else starts
This commit is contained in:
parent
513f5d0568
commit
03968f377e
2 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
import binascii
|
import binascii
|
||||||
import certifi
|
|
||||||
import logging.handlers
|
import logging.handlers
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import os
|
import os
|
||||||
|
@ -233,10 +232,6 @@ class Daemon(AuthJSONRPCServer):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def setup(self):
|
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)
|
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
||||||
configure_loggly_handler()
|
configure_loggly_handler()
|
||||||
|
|
||||||
|
|
|
@ -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
|
from lbrynet.core import log_support
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
Loading…
Add table
Reference in a new issue