diff --git a/tools/gen_manifest.py b/tools/gen_manifest.py index 2cdeb59..d94f853 100755 --- a/tools/gen_manifest.py +++ b/tools/gen_manifest.py @@ -11,7 +11,9 @@ TAXONOMY_ROOT_PATH = Path(__file__).resolve().parent.parent def fetchTaxonomies(): taxonomiesFolder = TAXONOMY_ROOT_PATH taxonomies = [] - for taxonomyFile in taxonomiesFolder.glob('./*/machinetag.json'): + allTaxonomies = list(taxonomiesFolder.glob('./*/machinetag.json')) + allTaxonomies.sort() + for taxonomyFile in allTaxonomies: with open(taxonomyFile) as f: taxonomy = json.load(f) taxonomies.append(taxonomy) diff --git a/tools/gen_markdown.py b/tools/gen_markdown.py index 0a33439..560d24e 100755 --- a/tools/gen_markdown.py +++ b/tools/gen_markdown.py @@ -11,7 +11,9 @@ TAXONOMY_ROOT_PATH = Path(__file__).resolve().parent.parent def fetchTaxonomies(): taxonomiesFolder = TAXONOMY_ROOT_PATH taxonomies = [] - for taxonomyFile in taxonomiesFolder.glob('./*/machinetag.json'): + allTaxonomies = list(taxonomiesFolder.glob('./*/machinetag.json')) + allTaxonomies.sort() + for taxonomyFile in allTaxonomies: with open(taxonomyFile) as f: taxonomy = json.load(f) taxonomies.append(taxonomy)