Skip to content

Commit

Permalink
fix bug where relative paths are passed on and then don't get properl…
Browse files Browse the repository at this point in the history
…y linked when the directory changes
  • Loading branch information
sevyharris committed Nov 8, 2024
1 parent ea113b7 commit f897171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/tools/fluxdiagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f897171

Please sign in to comment.