From ae96a7d302fcacb5990ee8bba2846cd78cff1368 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Thu, 13 Aug 2020 22:59:01 +0300 Subject: [PATCH] Commented out old license_handler() --- Defs/ActionManager/simple_informant.py | 44 +++++++++++++------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Defs/ActionManager/simple_informant.py b/Defs/ActionManager/simple_informant.py index 81c2aea..f59357f 100644 --- a/Defs/ActionManager/simple_informant.py +++ b/Defs/ActionManager/simple_informant.py @@ -22,28 +22,28 @@ from Defs.ImportManager.unsorted_will_be_replaced import try_to_run_command default_palette = theme.default_palette -def license_handler(): - """ Checks if eula.txt exists, creates one if it doesn't. Checks if "eula = True" is inside. - - Returns: - boolean: Returns True if "eula = True" is inside eula.txt, False by default. - """ - eula = pathlib_Path("eula.txt") - if eula.exists(): - with open("eula.txt", "r") as f: - if "eula = True" in f.read(): - print("Found your license agreement, proceeding...") - return True - else: - print("Please read and accept license.") - return False - else: - eula.touch(mode=0o777, exist_ok=True) - eula = open("eula.txt", "w") - eula.write(localization.write_eula + "eula = False") - eula.close() - print("Please accept EULA.") - return False +# def license_handler(): +# """ Checks if eula.txt exists, creates one if it doesn't. Checks if "eula = True" is inside. +# +# Returns: +# boolean: Returns True if "eula = True" is inside eula.txt, False by default. +# """ +# eula = pathlib_Path("eula.txt") +# if eula.exists(): +# with open("eula.txt", "r") as f: +# if "eula = True" in f.read(): +# print("Found your license agreement, proceeding...") +# return True +# else: +# print("Please read and accept license.") +# return False +# else: +# eula.touch(mode=0o777, exist_ok=True) +# eula = open("eula.txt", "w") +# eula.write(localization.write_eula + "eula = False") +# eula.close() +# print("Please accept EULA.") +# return False def exit_message(port=80): # Message when HiddenEye exit