18 lines
346 B
Python
18 lines
346 B
Python
# Copyright 2021 (c) Anna Schumaker.
|
|
import os
|
|
|
|
MAJOR = 2
|
|
MINOR = 0
|
|
|
|
DEBUG = False
|
|
if os.path.exists(".debug"):
|
|
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 ''}"
|