> +(opts,args) = parser.parse_args() > + > +xml_dir = args[0] > +if (opts.outfile): > + outfile = open(opts.outfile, "w+") > +else: > + outfile=sys.stdout > + > +if (opts.scioutfile): > + scioutfile = open(opts.scioutfile, "w+") > +else: > + scioutfile = outfile > + > +if (outfile is None): > + sys.stderr.write("no output file\n") > + exit(1)
should also check scioutfile
—
Reply to this email directly or view it on GitHub.