Renamed settings.py to file_dict.py, because it can not only be used to store settings.
This commit is contained in:
parent
95c6346d26
commit
8633958f29
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
class Settings:
|
class FileDict:
|
||||||
def __init__(self, path: str=None):
|
def __init__(self, path: str=None):
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ class Settings:
|
||||||
else:
|
else:
|
||||||
self.load_from_file(path)
|
self.load_from_file(path)
|
||||||
|
|
||||||
|
|
||||||
def load_from_file(self, path):
|
def load_from_file(self, path):
|
||||||
file = open(path, "r")
|
file = open(path, "r")
|
||||||
self.settings = eval(file.read())
|
self.settings = eval(file.read())
|
Loading…
Reference in a new issue