mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[web] improvement: installed applications are now stored at '/usr/local/share/bauh/web/installed' for the root user
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
import os
|
import os
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from bauh import __app_name__
|
from bauh import __app_name__
|
||||||
from bauh.api.paths import DESKTOP_ENTRIES_DIR, CONFIG_DIR, TEMP_DIR, CACHE_DIR
|
from bauh.api.paths import DESKTOP_ENTRIES_DIR, CONFIG_DIR, TEMP_DIR, CACHE_DIR, SHARED_FILES_DIR
|
||||||
from bauh.commons import resource
|
from bauh.commons import resource
|
||||||
from bauh.commons.util import map_timestamp_file
|
from bauh.commons.util import map_timestamp_file
|
||||||
|
|
||||||
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
WEB_PATH = f'{Path.home()}/.local/share/{__app_name__}/web'
|
WEB_PATH = f'{SHARED_FILES_DIR}/web'
|
||||||
WEB_CACHE_DIR = f'{CACHE_DIR}/web'
|
WEB_CACHE_DIR = f'{CACHE_DIR}/web'
|
||||||
INSTALLED_PATH = f'{WEB_PATH}/installed'
|
INSTALLED_PATH = f'{WEB_PATH}/installed'
|
||||||
ENV_PATH = f'{WEB_PATH}/env'
|
ENV_PATH = f'{WEB_PATH}/env'
|
||||||
|
|||||||
Reference in New Issue
Block a user