Skip to content

Commit ae84b9b

Browse files
committed
Minor import fix in makeProfileGraph funciton.
Fixes problem of gprof2dot getting imported as a module rather than a class.
1 parent e3e187d commit ae84b9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rmgpy/rmg/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ def makeProfileGraph(stats_file):
11451145
`dot -Tpdf input.dot -o output.pdf`.
11461146
"""
11471147
try:
1148-
import gprof2dot
1148+
from gprof2dot import gprof2dot
11491149
except ImportError:
11501150
logging.warning('Package gprof2dot not found. Unable to create a graph of the profile statistics.')
11511151
# `pip install gprof2dot` if you don't have it.

0 commit comments

Comments
 (0)