From 43a6f5bb51613b6ec1a49a98f578410b54510917 Mon Sep 17 00:00:00 2001 From: Rafael M Mudafort Date: Wed, 13 Nov 2024 21:26:37 -0600 Subject: [PATCH] Print paths --- floris/type_dec.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/floris/type_dec.py b/floris/type_dec.py index 319a09917..08db10775 100644 --- a/floris/type_dec.py +++ b/floris/type_dec.py @@ -158,6 +158,9 @@ def convert_to_path(fn: str | Path) -> Path: base_fn_script = Path(inspect.stack()[-1].filename).resolve().parent base_fn_sys = Path(inspect.stack()[1].filename).resolve().parent + print("base_fn_script ", base_fn_script) + print("base_fn_sys ", base_fn_sys) + if isinstance(fn, Path): absolute_fn = fn.resolve() relative_fn_script = (base_fn_script / fn).resolve()