added a way to delete the file config

master
kirbylife 2020-12-08 19:45:31 -06:00
parent 4fc38c53ba
commit eab16c032d
1 changed files with 4 additions and 3 deletions

View File

@ -20,10 +20,11 @@ def __get_config_folder():
return folder return folder
def __get_files_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(): def get_config():
while True: for _ in range(3):
config = __get_config() config = __get_config()
if not config: if not config:
gui_config() gui_config()
@ -126,5 +127,5 @@ def search_folder(field):
if __name__ == "__main__": if __name__ == "__main__":
if "--restart" in sys.argv: if "--restart" in sys.argv:
if __get_config(): if __get_config():
shutil.rmtreee(__get_config_folder()) shutil.rmtree(__get_config_folder())
print(get_config()) print(get_config())