Skip to content

Commit

Permalink
FIX: Swapped absolute() for resolve()
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemc23 authored Nov 27, 2024
1 parent 63161bf commit e97f5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eoreader/products/sar/sar_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down Expand Up @@ -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.")

Expand Down

0 comments on commit e97f5ee

Please sign in to comment.