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") )