2021-07-23 10:29:00 -04:00
|
|
|
# Copyright 2021 (c) Anna Schumaker.
|
|
|
|
import os
|
|
|
|
|
|
|
|
MAJOR = 2
|
2021-12-21 15:43:57 -05:00
|
|
|
MINOR = 9
|
2021-07-23 10:29:00 -04:00
|
|
|
|
|
|
|
DEBUG = False
|
2021-07-26 11:41:19 -04:00
|
|
|
if os.path.exists(".debug"):
|
|
|
|
with open(".debug") as f:
|
|
|
|
if f.read().strip() == "emmental":
|
|
|
|
DEBUG = True
|
2021-07-23 10:29:00 -04:00
|
|
|
|
|
|
|
TESTING = os.environ.get("EMMENTAL_TESTING") != None
|
|
|
|
|
|
|
|
|
|
|
|
def string():
|
|
|
|
return f"Emmental {MAJOR}.{MINOR}{'-debug' if DEBUG else ''}"
|