From b4ea044502d18cfe2623fe444d1021e3b512a2ae Mon Sep 17 00:00:00 2001 From: garcs2 Date: Tue, 8 Oct 2024 15:22:01 -0400 Subject: [PATCH] load_obj: pathing for sonvalidxml and schema are now os agnostic, i.e. windows compatible --- src/Main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main.py b/src/Main.py index cb0c0d2..4b835ff 100755 --- a/src/Main.py +++ b/src/Main.py @@ -113,8 +113,8 @@ def load_obj(self, input_path, accert_path): """ import subprocess - sonvalidxml = accert_path + "/bin/sonvalidxml" - schema = accert_path + "/src/etc/accert.sch" + sonvalidxml = os.path.join(accert_path, "bin", "sonvalidxml") + schema = os.path.join(accert_path, "src", "etc", "accert.sch") cmd = ' '.join([sonvalidxml, schema, input_path]) xmlresult = subprocess.check_output(cmd, shell=True) ### obtain pieces of input by name for convenience