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())