From 7ebbbf1528fb57152aaa9efa10a8e088799790cd Mon Sep 17 00:00:00 2001
From: Susa Giogoli <su.giogoli@icloud.com>
Date: Fri, 30 Jun 2023 16:40:01 +0200
Subject: [PATCH] Changed call path so you don't need to enter the complete
 filepath when calling

---
 newmodeljsonparse.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newmodeljsonparse.py b/newmodeljsonparse.py
index 68e30dd..ee8c7a4 100644
--- a/newmodeljsonparse.py
+++ b/newmodeljsonparse.py
@@ -273,7 +273,7 @@ def instantiate(typesdict, interfaces, jsoncomponents):
 def main():
     try:
         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()
     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".')
-- 
GitLab