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):