[api] refactoring: 'constants' module renamed to 'paths'

This commit is contained in:
Vinicius Moreira
2021-11-23 17:53:05 -03:00
parent 70073a7bad
commit 8f9810bd69
16 changed files with 15 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import os
from pathlib import Path
from bauh.api.constants import CACHE_PATH, CONFIG_PATH, TEMP_DIR
from bauh.api.paths import CACHE_PATH, CONFIG_PATH, TEMP_DIR
from bauh.commons import resource
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))

View File

@@ -25,7 +25,7 @@ from bauh.api.abstract.model import PackageUpdate, PackageHistory, SoftwarePacka
from bauh.api.abstract.view import MessageType, FormComponent, InputOption, SingleSelectComponent, SelectViewType, \
ViewComponent, PanelComponent, MultipleSelectComponent, TextInputComponent, TextInputType, \
FileChooserComponent, TextComponent
from bauh.api.constants import TEMP_DIR
from bauh.api.paths import TEMP_DIR
from bauh.api.exception import NoInternetException
from bauh.commons import user, system
from bauh.commons.boot import CreateConfigFile

View File

@@ -7,7 +7,7 @@ from logging import Logger
from pathlib import Path
from typing import Optional
from bauh.api.constants import CACHE_PATH
from bauh.api.paths import CACHE_PATH
from bauh.commons.system import ProcessHandler
SYNC_FILE = '{}/arch/db_sync'.format(CACHE_PATH)

View File

@@ -6,7 +6,7 @@ from datetime import datetime
from logging import Logger
from pathlib import Path
from bauh.api.constants import CACHE_PATH
from bauh.api.paths import CACHE_PATH
SYNC_FILE = '{}/arch/mirrors_sync'.format(CACHE_PATH)