From e7ba046fc45824c669871306da09f772fd59d041 Mon Sep 17 00:00:00 2001 From: Vijay Sarvepalli Date: Fri, 12 Jul 2024 16:57:39 -0400 Subject: [PATCH] Path confusion continues --- src/test/test_schema.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/test_schema.py b/src/test/test_schema.py index 2401c4c5..59488401 100644 --- a/src/test/test_schema.py +++ b/src/test/test_schema.py @@ -35,13 +35,14 @@ def retrieve_local(uri): fileuri = uri.replace("https://certcc.github.io/SSVC", "") mypath = os.path.dirname(__file__) - path = "../.." + fileuri + rpath = os.getcwd() + path = mypath + "../.." + fileuri if os.path.exists(path): fh = open(path) schema = json.load(fh) fh.close() return Resource.from_contents(schema) - raise FileNotFoundError(f"Could not find {path} {mypath}") + raise FileNotFoundError(f"Could not find {path} {mypath} {rpath}") registry = Registry(retrieve=retrieve_local)