Skip to content

Commit bcd644d

Browse files
adambogoczmvantellingen
authored andcommitted
Fix Incorrect absolute path resolution of XSD import
- Path was resolved relative to the root document, but if parsing was indirected by another include or import a wrong path was created
1 parent 1ac9e7a commit bcd644d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zeep/xsd/visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def visit_import(self, node, parent):
183183
location = node.get("schemaLocation")
184184
if location:
185185
location = normalize_location(
186-
self.schema.settings, location, self.document._location
186+
self.schema.settings, location, self.document._base_url
187187
)
188188

189189
if not namespace and not self.document._target_namespace:

0 commit comments

Comments
 (0)