mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 04:14:16 +02:00
[api] refactoring: 'constants' module renamed to 'paths'
This commit is contained in:
@@ -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__))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user