[config] Change config path

This commit is contained in:
Louis Chauvet 2020-07-04 11:13:51 +02:00
parent 9e6fc9d9d0
commit 8a5c6a36a1
Signed by: fomys
GPG Key ID: 1ECA046A9615ABA0

View File

@ -14,7 +14,7 @@ class BaseModule:
self.infos = toml.load(f)
self.name = self.infos["name"]
self.client = client
self.config = self.client.get_config(path=os.path.join(client.config["data_folder"], self.name.lower(), "config.toml"))
self.config = self.client.get_config(path=os.path.join(self.name.lower(), "config.toml"))
async def _run_event(self, coro, event_name, *args, **kwargs):
try: