From 43902e3ddc844de4c0171e65f4adb340ae0bb42d Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 24 Nov 2021 12:04:30 -0300 Subject: [PATCH] [arch] refactoring: defining CONFIG_DIR constant based on CONFIG_PATH constant from 'api' module --- bauh/gems/arch/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bauh/gems/arch/__init__.py b/bauh/gems/arch/__init__.py index 33801aaf..811003cf 100644 --- a/bauh/gems/arch/__init__.py +++ b/bauh/gems/arch/__init__.py @@ -1,5 +1,4 @@ import os -from pathlib import Path from bauh.api.paths import CONFIG_PATH, TEMP_DIR, CACHE_PATH from bauh.commons import resource @@ -10,7 +9,7 @@ ARCH_CACHE_PATH = f'{CACHE_PATH}/arch' CATEGORIES_FILE_PATH = f'{ARCH_CACHE_PATH}/categories.txt' URL_CATEGORIES_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/categories.txt' URL_GPG_SERVERS = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/arch/gpgservers.txt' -CONFIG_DIR = '{}/.config/bauh/arch'.format(str(Path.home())) +CONFIG_DIR = f'{CONFIG_PATH}/arch' CUSTOM_MAKEPKG_FILE = '{}/makepkg.conf'.format(CONFIG_DIR) AUR_INDEX_FILE = f'{ARCH_CACHE_PATH}/aur/index.txt' AUR_INDEX_TS_FILE = f'{ARCH_CACHE_PATH}/aur/index.ts'