Move to "modules"

This commit is contained in:
Maxim Khomutov 2023-07-02 01:33:51 +03:00
parent 8a9866d907
commit 8c962e5e26
4 changed files with 23 additions and 4 deletions

View File

@ -1,3 +0,0 @@
# -*- coding: utf-8 -*-
class BadConfigError(Exception): ...

View File

@ -1 +1,10 @@
# -*- coding: utf-8 -*-
# Developed by KuiToi Dev
# File modules.__init__.py
# Written by: SantaSpeen
# Version 1.0
# Licence: FPA
# (c) kuitoi.su 2023
from .console import Console
from .config_provider import ConfigProvider, Config

View File

@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
# Developed by KuiToi Dev
# File modules.config_provider.__init__.py
# Written by: SantaSpeen
# Version 1.0
# Licence: FPA
# (c) kuitoi.su 2023
from .config_provider import ConfigProvider, Config

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Developed by KuiToi Dev
# File core.config_provider.py
# File modules.config_provider.config_provider.py
# Written by: SantaSpeen
# Version 1.0
# Licence: FPA
@ -42,3 +42,7 @@ class ConfigProvider:
exit(1)
return self.config
def save_config(self):
with open(self.config_patch, "w", encoding="utf-8") as f:
yaml.dump(self.config, f)