From e18aae004a6bc6cc9540686e5433a5ee387b4100 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Mon, 19 Sep 2022 13:02:30 -0400 Subject: [PATCH] Test for environment variable correctly --- bin/save_all_bpmn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/save_all_bpmn.py b/bin/save_all_bpmn.py index 0751d818..e6ca8fca 100644 --- a/bin/save_all_bpmn.py +++ b/bin/save_all_bpmn.py @@ -13,7 +13,7 @@ def main(): os.environ["FLASK_ENV"] = "development" flask_env_key = "FLASK_SESSION_SECRET_KEY" os.environ[flask_env_key] = "whatevs" - if os.environ["BPMN_SPEC_ABSOLUTE_DIR"] is None: + if "BPMN_SPEC_ABSOLUTE_DIR" not in os.environ: home = os.environ["HOME"] full_process_model_path = ( f"{home}/projects/github/sartography/sample-process-models"