Skip to content

Commit a8afb38

Browse files
committed
fix bug where relative paths are passed on and then don't get properly linked when the directory changes
1 parent 82817e5 commit a8afb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmgpy/tools/fluxdiagram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def create_flux_diagram(input_file, chemkin_file, species_dict, save_path=None,
540540
a species_dict txt file, plus an optional chemkin_output file.
541541
"""
542542
if species_path is None:
543-
species_path = os.path.join(os.path.dirname(input_file), 'species')
543+
species_path = os.path.join(os.path.dirname(os.path.abspath(input_file)), 'species')
544544
generate_images = True
545545
else:
546546
generate_images = False

0 commit comments

Comments
 (0)