fix two issues, one where we were not sorting after globbing, and another where we forgot about process groups

This commit is contained in:
burnettk 2023-03-16 12:34:44 -04:00
parent 6c8a324f46
commit bcf798f299
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class ExampleDataLoader:
bpmn_file_name_with_extension = bpmn_file_name
if not bpmn_file_name_with_extension:
bpmn_file_name_with_extension = process_model_id
bpmn_file_name_with_extension = os.path.basename(process_model_id)
if not bpmn_file_name_with_extension.endswith(".bpmn"):
bpmn_file_name_with_extension += ".bpmn"
@ -65,7 +65,7 @@ class ExampleDataLoader:
file_name_matcher,
)
files = glob.glob(file_glob)
files = sorted(glob.glob(file_glob))
for file_path in files:
if os.path.isdir(file_path):
continue # Don't try to process sub directories