Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Path confusion continues
Browse files Browse the repository at this point in the history
sei-vsarvepalli committed Jul 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a199575 commit e7ba046
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/test_schema.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit e7ba046

Please sign in to comment.