This commit is contained in:
burnettk 2022-09-19 12:16:10 -04:00
parent 96dcd4ebe4
commit 44e202e594
1 changed files with 5 additions and 3 deletions

View File

@ -13,11 +13,13 @@ def main():
os.environ["FLASK_ENV"] = "development" os.environ["FLASK_ENV"] = "development"
flask_env_key = "FLASK_SESSION_SECRET_KEY" flask_env_key = "FLASK_SESSION_SECRET_KEY"
os.environ[flask_env_key] = "whatevs" os.environ[flask_env_key] = "whatevs"
if os.environ['BPMN_SPEC_ABSOLUTE_DIR'] is None: if os.environ["BPMN_SPEC_ABSOLUTE_DIR"] is None:
home = os.environ["HOME"] home = os.environ["HOME"]
full_process_model_path = f"{home}/projects/github/sartography/sample-process-models" full_process_model_path = (
f"{home}/projects/github/sartography/sample-process-models"
)
if os.path.isdir(full_process_model_path): if os.path.isdir(full_process_model_path):
os.environ['BPMN_SPEC_ABSOLUTE_DIR'] = full_process_model_path os.environ["BPMN_SPEC_ABSOLUTE_DIR"] = full_process_model_path
else: else:
raise Exception(f"Could not find {full_process_model_path}") raise Exception(f"Could not find {full_process_model_path}")
app = create_app() app = create_app()