mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 05:54:15 +02:00
[view.core.config] refactoring: FILE_PATH constant using CONFIG_DIR from 'api' module
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
from pathlib import Path
|
from bauh.api.paths import CONFIG_DIR
|
||||||
|
|
||||||
from bauh import __app_name__
|
|
||||||
from bauh.commons.config import YAMLConfigManager
|
from bauh.commons.config import YAMLConfigManager
|
||||||
|
|
||||||
FILE_PATH = '{}/.config/{}/config.yml'.format(str(Path.home()), __app_name__)
|
FILE_PATH = f'{CONFIG_DIR}/config.yml'
|
||||||
|
|
||||||
|
|
||||||
class CoreConfigManager(YAMLConfigManager):
|
class CoreConfigManager(YAMLConfigManager):
|
||||||
|
|||||||
Reference in New Issue
Block a user