diff options
author | Ben V. Brown <[email protected]> | 2022-02-07 21:31:33 +1100 |
---|---|---|
committer | Ben V. Brown <[email protected]> | 2022-02-07 21:31:33 +1100 |
commit | 5e777a97d26638b78c905c8ac896981fa67d1b07 (patch) | |
tree | fb47ef7e838be34192e128078f182607f7726e9a /source | |
parent | 91c9c73d4ac1f2a9b683cd8ee3f84a311f3ea980 (diff) | |
download | IronOS-5e777a97d26638b78c905c8ac896981fa67d1b07.tar.gz IronOS-5e777a97d26638b78c905c8ac896981fa67d1b07.zip |
Draft ci
Diffstat (limited to 'source')
-rwxr-xr-x | source/metadata.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/metadata.py b/source/metadata.py index 94d3bfc9..cd672bfc 100755 --- a/source/metadata.py +++ b/source/metadata.py @@ -5,14 +5,20 @@ from pathlib import Path import os import re import subprocess +import sys # Creates an index metadata json file of the hexfiles folder # This is used by automation like the Pinecil updater + +if len(sys.argv) != 2: + print("Requires the output json name as an arg") + exit(1) + HERE = Path(__file__).resolve().parent HexFileFolder = os.path.join(HERE, "Hexfile") -OutputJSONPath = os.path.join(HexFileFolder, "index.json") +OutputJSONPath = os.path.join(HexFileFolder, sys.argv[1]) TranslationsFilesPath = os.path.join(HERE.parent, "Translations") |