Skip to content

Commit 5d65886

Browse files
committed
rebase
1 parent ba1da3c commit 5d65886

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

linkml_runtime/utils/schemaview.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ def is_absolute_path(path: str) -> bool:
107107
drive, tail = os.path.splitdrive(norm_path)
108108
return bool(drive and tail)
109109

110+
# WINDOWS:
111+
# # This cannot be simplified. os.path.normpath() must be called before .as_posix()
112+
# i = PurePath(os.path.normpath(PurePath(sn).parent / i)).as_posix()
113+
# # i = resolve_import(sn, i)
114+
# else:
115+
# # i = resolve_import(sn, i)
116+
# i = os.path.normpath(str(Path(sn).parent / i))
117+
110118
def _resolve_import(source_sch: str, imported_sch: str) -> str:
111119
if os.path.isabs(imported_sch):
112120
# Absolute import paths are not modified
@@ -1952,4 +1960,4 @@ def materialize_derived_schema(self) -> SchemaDefinition:
19521960
derived_schema.subsets[subset.name] = subset
19531961
for enum in [deepcopy(e) for e in self.all_enums().values()]:
19541962
derived_schema.enums[enum.name] = enum
1955-
return derived_schema
1963+
return derived_schema

0 commit comments

Comments
 (0)