Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-zebra committed Jul 9, 2022
1 parent b4da10c commit 49ec499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# config lib v1.0 by zebra
class Config:
def __init__(self) -> None:
def __init__(self, name = None, path = None) -> None:
self._configs = {}
if name:
self.new_config(name=name, path=path)
def new_config(self, name :str, path = None):
path = path if path else f"config/{name}.cfg"
with open(path,'r') as file:
Expand Down

0 comments on commit 49ec499

Please sign in to comment.