From 4fc38c53bae27239d462f82bbb8f5500351526c5 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Tue, 8 Dec 2020 19:43:20 -0600 Subject: [PATCH] added a way to delete the file config --- config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index b9bf093..051b2f1 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,5 @@ import os +import shutil import sys import pathlib import pickle @@ -125,5 +126,5 @@ def search_folder(field): if __name__ == "__main__": if "--restart" in sys.argv: if __get_config(): - os.removedirs(__get_config_folder()) + shutil.rmtreee(__get_config_folder()) print(get_config())