Test for environment variable correctly

This commit is contained in:
mike cullerton 2022-09-19 13:02:30 -04:00
parent 44e202e594
commit e18aae004a
1 changed files with 1 additions and 1 deletions

View File

@ -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"