From 18b44b43440a321dfac5cd0a823b20cf5ac6c571 Mon Sep 17 00:00:00 2001 From: Sylvain Brunato Date: Fri, 15 Dec 2023 17:31:49 +0100 Subject: [PATCH] fix: use normpath with rasterio subdatasets paths --- eodag_cube/api/product/drivers/sentinel2_l1c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eodag_cube/api/product/drivers/sentinel2_l1c.py b/eodag_cube/api/product/drivers/sentinel2_l1c.py index 27f7540..28bea49 100644 --- a/eodag_cube/api/product/drivers/sentinel2_l1c.py +++ b/eodag_cube/api/product/drivers/sentinel2_l1c.py @@ -80,7 +80,7 @@ def get_data_address(self, eo_product, band): lambda f: band_file_pattern.match(f), subdataset.files, ): - return filename + return os.path.normpath(filename) raise AddressNotFound if product_location_scheme == "s3": access_key, access_secret = eo_product.downloader_auth.authenticate()