We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21b0441 commit 0f77cacCopy full SHA for 0f77cac
1 file changed
signxml/processor.py
@@ -18,7 +18,8 @@
18
19
@lru_cache
20
def get_schema(schema_file: str) -> etree.XMLSchema:
21
- schema_fh = importlib.resources.open_text("signxml.schemas", schema_file)
+ pkg_name = "signxml.xades.schemas" if schema_file.startswith("XAdES") else "signxml.schemas"
22
+ schema_fh = importlib.resources.open_text(pkg_name, schema_file)
23
return etree.XMLSchema(etree.parse(schema_fh))
24
25
0 commit comments