mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 03:43:15 +01:00
Removed unnecessary shutil.rmtree for CONFIG_SHELVE file.
This commit is contained in:
@@ -173,8 +173,6 @@ class configuration:
|
||||
def configuration_save(config):
|
||||
if not os.path.exists(CONFIG_SHELVE_DIR):
|
||||
os.mkdir(CONFIG_SHELVE_DIR)
|
||||
if os.path.exists(CONFIG_SHELVE):
|
||||
shutil.rmtree(CONFIG_SHELVE)
|
||||
|
||||
config_shelve = shelve.open(CONFIG_SHELVE)
|
||||
config_shelve["configuration"] = config
|
||||
|
||||
Reference in New Issue
Block a user