File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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+
110118def _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
You can’t perform that action at this time.
0 commit comments