/[pdpsoft]/trunk/nl.nikhef.pdp.dot2term/dot2term.m4
ViewVC logotype

Diff of /trunk/nl.nikhef.pdp.dot2term/dot2term.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1455 by templon, Thu Feb 4 09:56:48 2010 UTC revision 1457 by templon, Thu Feb 4 10:16:40 2010 UTC
# Line 41  def main(): Line 41  def main():
41          if o in ("-r", "--root"):          if o in ("-r", "--root"):
42              root = a              root = a
43    
44        if args[0][-4:] == '.dot' :
45            outfile=args[0][:-4]+'.udg'
46        else:
47            outfile = args[0] + '.udg'
48        
49      dotlines = open(args[0]).readlines()      dotlines = open(args[0]).readlines()
50      if dotlines[0].find('digraph') < 0 :      if dotlines[0].find('digraph') < 0 :
51          print "Expected digraph as first line, found", dotlines[0]          print "Expected digraph as first line, found", dotlines[0]
# Line 88  def main(): Line 93  def main():
93            
94      dvFmt = Formathandler(dvnode, dvref, dvb4child, dvb4next,      dvFmt = Formathandler(dvnode, dvref, dvb4child, dvb4next,
95                            dvafterchild, dvafterchildren,                            dvafterchild, dvafterchildren,
96                            filename='aap.daVinci')                            filename=outfile)
97    
98      init_traverse()              # initialize data structures for tree traversal      init_traverse()              # initialize data structures for tree traversal
99    

Legend:
Removed from v.1455  
changed lines
  Added in v.1457

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28