emmental/lib/version.py

17 lines
304 B
Python

# Copyright 2021 (c) Anna Schumaker.
import os
MAJOR = 2
MINOR = 0
DEBUG = False
with open("debug") as f:
if f.read().strip() == "emmental":
DEBUG = True
TESTING = os.environ.get("EMMENTAL_TESTING") != None
def string():
return f"Emmental {MAJOR}.{MINOR}{'-debug' if DEBUG else ''}"