Merge branch 'dev' into feature/cog-2950-ontologyresolver-abstraction

This commit is contained in:
hajdul88 2025-09-18 13:09:41 +02:00 committed by GitHub
commit a1813fafcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,11 @@ def ensure_absolute_path(path: str) -> str:
"""
if path is None:
raise ValueError("Path cannot be None")
# Check if it's an S3 URL - S3 URLs are absolute by definition
if path.startswith("s3://"):
return path
path_obj = Path(path).expanduser()
if path_obj.is_absolute():
return str(path_obj.resolve())