From e97f5ee21e60a29540ec1cf68c61dd3a510ad7c0 Mon Sep 17 00:00:00 2001 From: guillemc23 Date: Wed, 27 Nov 2024 16:42:44 +0100 Subject: [PATCH] FIX: Swapped `absolute()` for `resolve()` --- eoreader/products/sar/sar_product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eoreader/products/sar/sar_product.py b/eoreader/products/sar/sar_product.py index ee7b80b9..48511994 100644 --- a/eoreader/products/sar/sar_product.py +++ b/eoreader/products/sar/sar_product.py @@ -746,7 +746,7 @@ def _pre_process_sar(self, band: sab, pixel_size: float = None, **kwargs) -> str f"{spt}_{sat}_preprocess_default.xml" ) else: - pp_graph = AnyPath(os.environ[PP_GRAPH]).absolute() + pp_graph = AnyPath(os.environ[PP_GRAPH]).resolve() if not pp_graph.is_file() or not pp_graph.suffix == ".xml": FileNotFoundError(f"{pp_graph} cannot be found.") @@ -847,7 +847,7 @@ def _despeckle_sar(self, band: sab, **kwargs) -> str: if DSPK_GRAPH not in os.environ: dspk_graph = utils.get_data_dir().joinpath("sar_despeckle_default.xml") else: - dspk_graph = AnyPath(os.environ[DSPK_GRAPH]).absolute() + dspk_graph = AnyPath(os.environ[DSPK_GRAPH]).resolve() if not dspk_graph.is_file() or not dspk_graph.suffix == ".xml": FileNotFoundError(f"{dspk_graph} cannot be found.")