use instance path instead of root_path for nox w/ burnettk

This commit is contained in:
jasquat 2022-11-09 16:54:14 -05:00
parent d4113651e0
commit 795df35260
1 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,6 @@ class ExampleDataLoader:
display_name: str = "",
description: str = "",
display_order: int = 0,
# from_tests: bool = False,
bpmn_file_name: Optional[str] = None,
process_model_source_directory: Optional[str] = None,
) -> ProcessModelInfo:
@ -58,9 +57,9 @@ class ExampleDataLoader:
if bpmn_file_name:
file_name_matcher = bpmn_file_name_with_extension
# file_glob = ""
# we need instance_path here for nox tests
file_glob = os.path.join(
current_app.root_path,
current_app.instance_path,
"..",
"..",
"tests",