Skip to content

Commit 4771bf1

Browse files
Glob has different orders per system, always sort to guarantee behavior (#238)
Co-authors: @irvingywang @ronakpjain
1 parent 9a061d6 commit 4771bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/daq/generation/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def merge_can_configs(configs):
372372

373373
def load_split_nodes(directory):
374374
configs = []
375-
for file_path in glob.glob(f"{directory}/*.json"):
375+
for file_path in sorted(glob.glob(f"{directory}/*.json")):
376376
with open(file_path) as f:
377377
config = json.load(f)
378378
configs.append(config)

0 commit comments

Comments
 (0)