[api] refactoring: CONFIG_PATH constant renamed to CONFIG_DIR

This commit is contained in:
Vinicius Moreira
2021-11-24 12:11:41 -03:00
parent 797bea4b6d
commit 47348c4b6c
8 changed files with 18 additions and 18 deletions

View File

@@ -1,11 +1,11 @@
import os
from bauh.api.paths import CONFIG_PATH, CACHE_PATH
from bauh.api.paths import CONFIG_DIR, CACHE_PATH
from bauh.commons import resource
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
SNAP_CACHE_PATH = f'{CACHE_PATH}/snap'
CONFIG_FILE = f'{CONFIG_PATH}/snap.yml'
CONFIG_FILE = f'{CONFIG_DIR}/snap.yml'
CATEGORIES_FILE_PATH = f'{SNAP_CACHE_PATH}/categories.txt'
URL_CATEGORIES_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/snap/categories.txt'
SUGGESTIONS_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/snap/suggestions.txt'