From eab16c032dd8d5ea8a3a0d8acafa5456bf5f50e5 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Tue, 8 Dec 2020 19:45:31 -0600 Subject: [PATCH] added a way to delete the file config --- config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 051b2f1..1d36fc2 100644 --- a/config.py +++ b/config.py @@ -20,10 +20,11 @@ def __get_config_folder(): return folder def __get_files_folder(): - folder = os.path.join(os.path.expanduser("~"), Munyal) + folder = os.path.join(os.path.expanduser("~"), "Munyal") + return folder def get_config(): - while True: + for _ in range(3): config = __get_config() if not config: gui_config() @@ -126,5 +127,5 @@ def search_folder(field): if __name__ == "__main__": if "--restart" in sys.argv: if __get_config(): - shutil.rmtreee(__get_config_folder()) + shutil.rmtree(__get_config_folder()) print(get_config())