exit: +digraph_print

This commit is contained in:
Costa Shulyupin 2018-07-29 09:23:00 +03:00
parent 378b753c89
commit 5bebe62d3e
1 changed files with 2 additions and 0 deletions

View File

@ -614,6 +614,8 @@ def main():
else: else:
ret = eval(sys.argv[1] + '(' + ', '.join("'%s'" % (a) ret = eval(sys.argv[1] + '(' + ', '.join("'%s'" % (a)
for a in sys.argv[2:]) + ')') for a in sys.argv[2:]) + ')')
if isinstance(ret, nx.DiGraph):
digraph_print(ret)
if isinstance(ret, bool) and ret is False: if isinstance(ret, bool) and ret is False:
sys.exit(os.EX_CONFIG) sys.exit(os.EX_CONFIG)
if (ret is not None): if (ret is not None):