Added additional check for license (Just in case, may remove later)

This commit is contained in:
sTiKyt 2020-05-11 13:10:39 +03:00
parent 8a7b1cf212
commit 606972d8c1
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -4,8 +4,6 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; you can read LICENSE for details.
#
from Defs.Checks import *
from os import system, environ
import Defs.ActionManager.main_runner as main_runner
@ -20,10 +18,14 @@ import sys
import ssl
simple_informant.license_handler()
agreement = simple_informant.terms_of_service_message()
if agreement != True:
exit()
if(not environ.get('PYTHONHTTPSVERIFY', "") and getattr(ssl, '_create_unverified_context', None)):
ssl._create_default_https_context = ssl._create_unverified_context
checkPermissions()
checkConnection()
verCheck()