summaryrefslogtreecommitdiffstats
path: root/src/debputy/__init__.py
blob: 23ebc5f47e9821ea0b11d8ba75b7e9c85c0688f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pathlib

from .version import IS_RELEASE_BUILD, __version__

# Replaced during install; must be a single line
# fmt: off
DEBPUTY_ROOT_DIR = pathlib.Path(__file__).parent.parent.parent
DEBPUTY_PLUGIN_ROOT_DIR = pathlib.Path(__file__).parent.parent.parent
# fmt: on

if IS_RELEASE_BUILD:
    DEBPUTY_DOC_ROOT_DIR = (
        f"https://salsa.debian.org/debian/debputy/-/blob/debian/{__version__}"
    )
else:
    DEBPUTY_DOC_ROOT_DIR = "https://salsa.debian.org/debian/debputy/-/blob/main"