mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Fix #7563. Regression in normalising document URIs.
This commit is contained in:
@@ -99,7 +99,7 @@ class ObjectDocumentData:
|
||||
return ""
|
||||
|
||||
uri = location
|
||||
if not uri.startswith("file://"):
|
||||
if "://" not in uri:
|
||||
if not os.path.isabs(uri):
|
||||
uri = os.path.abspath(os.path.join(os.path.dirname(tool.Ifc.get_path()), uri))
|
||||
uri = "file://" + uri
|
||||
|
||||
Reference in New Issue
Block a user