From bddfbdf9ee10ef308dc0838f311ba21b138b5946 Mon Sep 17 00:00:00 2001 From: Scott Staniewicz Date: Fri, 29 Nov 2024 11:49:21 -0500 Subject: [PATCH] Use `fspath` when opening with `gdal` to support older versions --- src/dolphin/io/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphin/io/_core.py b/src/dolphin/io/_core.py index 7c8e2c66..b2cc764a 100644 --- a/src/dolphin/io/_core.py +++ b/src/dolphin/io/_core.py @@ -86,7 +86,7 @@ def _get_gdal_ds(filename: Filename) -> gdal.Dataset: if str(filename).startswith("s3://"): return gdal.Open(S3Path(str(filename)).to_gdal()) - return gdal.Open(filename) + return gdal.Open(fspath(filename)) def load_gdal(