From 0b823c772ed5fbedb793ce0828c03c1e24403ccf Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 7 Jul 2023 17:20:07 +1000 Subject: [PATCH] Fix #3213. Internally, we should always use Unix path separators. --- src/blenderbim/blenderbim/tool/ifc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/tool/ifc.py b/src/blenderbim/blenderbim/tool/ifc.py index 616540edaf..36ab2f22c5 100644 --- a/src/blenderbim/blenderbim/tool/ifc.py +++ b/src/blenderbim/blenderbim/tool/ifc.py @@ -103,7 +103,7 @@ class Ifc(blenderbim.core.tool.Ifc): ifc_path = cls.get_path() if os.path.isfile(ifc_path): ifc_path = os.path.dirname(ifc_path) - return uri if not uri or os.path.isabs(uri) else os.path.join(ifc_path, uri) + return (uri if not uri or os.path.isabs(uri) else os.path.join(ifc_path, uri)).replace("\\", "/") @classmethod def get_relative_uri(cls, uri): @@ -112,7 +112,7 @@ class Ifc(blenderbim.core.tool.Ifc): ifc_path = cls.get_path() if os.path.isfile(ifc_path): ifc_path = os.path.dirname(ifc_path) - return os.path.relpath(uri, ifc_path) + return os.path.relpath(uri, ifc_path).replace("\\", "/") @classmethod def unlink(cls, element=None, obj=None):