From f897171e94187cd171772a839efb0d822d7b4d3d Mon Sep 17 00:00:00 2001 From: Sevy Harris Date: Fri, 8 Nov 2024 12:09:16 -0500 Subject: [PATCH] fix bug where relative paths are passed on and then don't get properly linked when the directory changes --- rmgpy/tools/fluxdiagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmgpy/tools/fluxdiagram.py b/rmgpy/tools/fluxdiagram.py index 0c523d1aff..00d4e39eb6 100644 --- a/rmgpy/tools/fluxdiagram.py +++ b/rmgpy/tools/fluxdiagram.py @@ -540,7 +540,7 @@ def create_flux_diagram(input_file, chemkin_file, species_dict, save_path=None, a species_dict txt file, plus an optional chemkin_output file. """ if species_path is None: - species_path = os.path.join(os.path.dirname(input_file), 'species') + species_path = os.path.join(os.path.dirname(os.path.abspath(input_file)), 'species') generate_images = True else: generate_images = False