Skip to content

Commit

Permalink
utilities: output_graph_image: use os.path.extsep instead of .
Browse files Browse the repository at this point in the history
  • Loading branch information
kmantel committed Jun 26, 2024
1 parent 11791f4 commit bf737c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/graph_scheduler/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import functools
import inspect
import logging
import os
import weakref
from typing import Callable, Dict, Hashable, List, Set, Union

Expand Down Expand Up @@ -230,7 +231,7 @@ def output_graph_image(
- Python pydot: pip install pydot
"""
if filename is None:
filename = f'graph-scheduler-figure-{id(graph)}.{format}'
filename = f'graph-scheduler-figure-{id(graph)}{os.path.extsep}{format}'

if not isinstance(graph, nx.Graph):
graph = dependency_dict_to_networkx_digraph(graph)
Expand Down

0 comments on commit bf737c2

Please sign in to comment.