Skip to content
Snippets Groups Projects
Commit 7ebbbf15 authored by Susanna Weber's avatar Susanna Weber
Browse files

Changed call path so you don't need to enter the complete filepath when calling

parent 98b65715
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,7 @@ def instantiate(typesdict, interfaces, jsoncomponents): ...@@ -273,7 +273,7 @@ def instantiate(typesdict, interfaces, jsoncomponents):
def main(): def main():
try: try:
JSON_MODEL = sys.argv[1][:-5] JSON_MODEL = sys.argv[1][:-5]
if not os.path.exists(os.path.join('..', 'SOIL OPC-UA', f'{JSON_MODEL}.json')): if not os.path.exists(os.path.join('..', 'soil-opc-ua', f'{JSON_MODEL}.json')):
raise Exception() raise Exception()
except Exception as e: except Exception as e:
print('You must provide a file from the folder to be used as root file of the parsing, e.g., "python jsonparser.py model.json".') print('You must provide a file from the folder to be used as root file of the parsing, e.g., "python jsonparser.py model.json".')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment