os -> pathlib
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
|
|
||||||
class Config(dict):
|
class Config(dict):
|
||||||
|
|
||||||
@ -29,9 +29,9 @@ class Config(dict):
|
|||||||
|
|
||||||
def _save(self):
|
def _save(self):
|
||||||
json_save(self, self.fname)
|
json_save(self, self.fname)
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
print(self.fname)
|
self.fname.unlink()
|
||||||
os.remove(self.fname)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user