dcs-retribution/game/version.py
2020-11-14 12:39:50 -08:00

18 lines
397 B
Python

from pathlib import Path
def _build_version_string() -> str:
components = ["2.3.0"]
if Path("buildnumber").exists():
with open("buildnumber", "r") as file:
components.append(file.readline())
if not Path("final").exists():
components.append("preview")
return "-".join(components)
#: Current version of Liberation.
VERSION = _build_version_string()