Commented out part to be replaced

This commit is contained in:
sTiKyt 2020-08-11 18:19:58 +03:00
parent ff7efcdd59
commit 13216cd7a7
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -4,6 +4,7 @@
# This is free software, and you are welcome to redistribute it # This is free software, and you are welcome to redistribute it
# under certain conditions; you can read LICENSE for details. # under certain conditions; you can read LICENSE for details.
# #
import multiprocessing import multiprocessing
import ssl import ssl
from os import environ from os import environ
@ -12,10 +13,15 @@ import Defs.ActionManager.Server.server_runner as server_runner
import Defs.ActionManager.simple_informant as simple_informant import Defs.ActionManager.simple_informant as simple_informant
import Defs.FeatureManager.feature_prompt as prompt import Defs.FeatureManager.feature_prompt as prompt
simple_informant.license_handler() # simple_informant.license_handler()
agreement = simple_informant.terms_of_service_message() # agreement = simple_informant.terms_of_service_message()
if not agreement: # if not agreement:
exit() # exit()
# TODO replace everything above
# FIXME new code above
if not environ.get("PYTHONHTTPSVERIFY", "") and getattr( if not environ.get("PYTHONHTTPSVERIFY", "") and getattr(
ssl, "_create_unverified_context", None): ssl, "_create_unverified_context", None):
@ -42,11 +48,11 @@ if __name__ == "__main__":
server_runner.server_selection(port) server_runner.server_selection(port)
multiprocessing.Process(target=server_runner.start_server, multiprocessing.Process(target=server_runner.start_server,
args=(port, )).start() args=(port,)).start()
simple_informant.credentials_collector() simple_informant.credentials_collector()
except KeyboardInterrupt: except KeyboardInterrupt:
# When Keyword Interrupt Occurs before defining Port by User. Script will use 8080 port.(Just To Remove Exception Errors) # When Keyword Interrupt Occurs script will use 8080 port.(Just To Remove Exception Errors)
port = "8080" port = "8080"
simple_informant.exit_message(port) simple_informant.exit_message(port)
exit() exit()