19 lines
340 B
Python
19 lines
340 B
Python
# Copyright 2021 (c) Anna Schumaker.
|
|
import os
|
|
import sys
|
|
|
|
MAJOR = 2
|
|
MINOR = 9
|
|
|
|
DEBUG = False
|
|
if os.path.exists(".debug"):
|
|
with open(".debug") as f:
|
|
if f.read().strip() == "emmental":
|
|
DEBUG = True
|
|
|
|
TESTING = "unittest" in sys.modules
|
|
|
|
|
|
def string():
|
|
return f"Emmental {MAJOR}.{MINOR}{'-debug' if DEBUG else ''}"
|