Rename the debug file to .debug

And check for existance before reading

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2021-07-26 11:41:19 -04:00
parent f78402f258
commit 66e1ba8b44
2 changed files with 4 additions and 3 deletions

View File

View File

@ -5,9 +5,10 @@ MAJOR = 2
MINOR = 0
DEBUG = False
with open("debug") as f:
if f.read().strip() == "emmental":
DEBUG = True
if os.path.exists(".debug"):
with open(".debug") as f:
if f.read().strip() == "emmental":
DEBUG = True
TESTING = os.environ.get("EMMENTAL_TESTING") != None