moved import certifi to run only on windows
This commit is contained in:
parent
0d35621a9a
commit
3d17c92bd3
1 changed files with 1 additions and 1 deletions
|
@ -1,10 +1,10 @@
|
||||||
import certifi
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Set SSL_CERT_FILE env variable for Twisted SSL verification on Windows
|
# Set SSL_CERT_FILE env variable for Twisted SSL verification on Windows
|
||||||
# This needs to happen before anything else
|
# This needs to happen before anything else
|
||||||
if 'win' in sys.platform:
|
if 'win' in sys.platform:
|
||||||
|
import certifi
|
||||||
os.environ['SSL_CERT_FILE'] = certifi.where()
|
os.environ['SSL_CERT_FILE'] = certifi.where()
|
||||||
|
|
||||||
from lbrynet.core import log_support
|
from lbrynet.core import log_support
|
||||||
|
|
Loading…
Add table
Reference in a new issue