From 92d90eb9a2777042a49ae9aa791fb7fc7e1e83e6 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 24 Nov 2021 12:19:00 -0300 Subject: [PATCH] [view.core.config] refactoring: FILE_PATH constant using CONFIG_DIR from 'api' module --- bauh/view/core/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bauh/view/core/config.py b/bauh/view/core/config.py index 850eca3a..c931eddc 100644 --- a/bauh/view/core/config.py +++ b/bauh/view/core/config.py @@ -1,9 +1,7 @@ -from pathlib import Path - -from bauh import __app_name__ +from bauh.api.paths import CONFIG_DIR 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):