summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/config.py
blob: 86870bc029046211778f2d9fe6e840bb89f7dad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import subprocess

from dynaconf import Dynaconf

settings = Dynaconf(
    settings_file="settings.toml",
    environments=True,
)

GIT_REVISION = (
    subprocess.check_output(["git", "describe", "--always"]).strip().decode("utf-8")
)