added a way to delete the file config

master
kirbylife 2020-12-08 19:43:20 -06:00
parent dde1d50954
commit 4fc38c53ba
1 changed files with 2 additions and 1 deletions

View File

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