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:
parent
f78402f258
commit
66e1ba8b44
|
@ -5,9 +5,10 @@ MAJOR = 2
|
||||||
MINOR = 0
|
MINOR = 0
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
with open("debug") as f:
|
if os.path.exists(".debug"):
|
||||||
if f.read().strip() == "emmental":
|
with open(".debug") as f:
|
||||||
DEBUG = True
|
if f.read().strip() == "emmental":
|
||||||
|
DEBUG = True
|
||||||
|
|
||||||
TESTING = os.environ.get("EMMENTAL_TESTING") != None
|
TESTING = os.environ.get("EMMENTAL_TESTING") != None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue