[refactoring] removing the HOME_PATH constant in favor of Path.home()

This commit is contained in:
Vinicius Moreira
2020-01-02 17:13:57 -03:00
parent 9cd89292be
commit 74ddfc03ef
4 changed files with 10 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
import os
from pathlib import Path
from bauh.api.constants import CACHE_PATH, HOME_PATH, CONFIG_PATH
from bauh.api.constants import CACHE_PATH, CONFIG_PATH
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD_DIR = '/tmp/bauh/aur'
@@ -8,7 +9,7 @@ ARCH_CACHE_PATH = CACHE_PATH + '/arch'
CATEGORIES_CACHE_DIR = ARCH_CACHE_PATH + '/categories'
CATEGORIES_FILE_PATH = CATEGORIES_CACHE_DIR + '/aur.txt'
URL_CATEGORIES_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/aur/categories.txt'
CONFIG_DIR = '{}/.config/bauh/arch'.format(HOME_PATH)
CONFIG_DIR = '{}/.config/bauh/arch'.format(Path.home())
CUSTOM_MAKEPKG_FILE = '{}/makepkg.conf'.format(CONFIG_DIR)
AUR_INDEX_FILE = '{}/aur.txt'.format(BUILD_DIR)
CONFIG_FILE = '{}/arch.yml'.format(CONFIG_PATH)