mandatoryprogrammer / TrustTrees

A Tool for DNS Delegation Trust Graphing
Apache License 2.0
403 stars 70 forks source link

Need to create an output directory on Mac and Linux #2

Closed blackswanburst closed 7 years ago

blackswanburst commented 7 years ago

The first time I ran the tool I got this error:

Traceback (most recent call last): File "trusttrees.py", line 486, in grapher.draw( file_name, prog="dot" ) File "/usr/local/lib/python2.7/dist-packages/pygraphviz/agraph.py", line 1477, in draw fh = self._get_fh(path, 'w+b') File "/usr/local/lib/python2.7/dist-packages/pygraphviz/agraph.py", line 1506, in _get_fh fh = open(path, mode=mode) IOError: [Errno 2] No such file or directory: './output/example.com_trust_tree_graph.png'

Once I created a directory it was fine, but it might be more user friendly to make the directory if it doesn't exist. If I find time, I'll fork and suggest the change, but it's logged here in case I forget.