chg: [tool] sort before output
parent
4e21962961
commit
05778f0157
|
@ -10,7 +10,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)
|
||||
|
@ -45,4 +47,4 @@ if __name__ == "__main__":
|
|||
taxonomies = fetchTaxonomies()
|
||||
manifest = generateManifest(taxonomies)
|
||||
saveManifest(manifest)
|
||||
awesomePrint('> Manifest saved!')
|
||||
awesomePrint('> Manifest saved!')
|
||||
|
|
|
@ -10,7 +10,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)
|
||||
|
@ -46,4 +48,4 @@ if __name__ == "__main__":
|
|||
taxonomies = fetchTaxonomies()
|
||||
markdown = generateMarkdown(taxonomies)
|
||||
saveMarkdown(markdown)
|
||||
awesomePrint('> Markdown saved!')
|
||||
awesomePrint('> Markdown saved!')
|
||||
|
|
Loading…
Reference in New Issue