i made some small changes so output file have same name as the input one.
file graphviz.py
from __future__ import division
import tempfile
import os
import sys
import textwrap
import subprocess as sub
from ..metadata import __version__
from ..exceptions import PyCallGraphException
from ..color import Color
from .output import Output
file_minus_extension = os.path.splitext(os.path.basename(os.path.realpath(sys.argv[3]))) #split filename + extension in two
class GraphvizOutput(Output):
def __init__(self, **kwargs):
g = globals()
self.png = '.png' # png extension
self.tool = 'dot'
self.output_file = str(file_minus_extension [0] +self.png) # filename + adding png to the end
i made some small changes so output file have same name as the input one.
file graphviz.py
test case
output