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