/
githubmirror
/
diagrams
Обзор
Документация
Войти
/
githubmirror
/
diagrams
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/__init__.py
24 строки
508 B
Benedikt Werner
Improve wording of documentation (#990)
13 апр 2024, 15:05
Не верифицирован
13 апр 2024, 15:05
4c2d8a3
Код
Авторство
О чём код?
import os from pathlib import Path import config as cfg def base_dir() -> Path: return Path(os.path.abspath(os.path.dirname(__file__))).parent def app_root_dir(pvd: str) -> str: return os.path.join(base_dir(), cfg.DIR_APP_ROOT, pvd) def doc_root_dir() -> str: return os.path.join(base_dir(), cfg.DIR_DOC_ROOT) def resource_dir(pvd: str) -> str: return os.path.join(base_dir(), cfg.DIR_RESOURCE, pvd) def template_dir() -> str: return os.path.join(base_dir(), cfg.DIR_TEMPLATE)