(argv)
| 44 | sys.exit(-1) |
| 45 | |
| 46 | def main(argv): |
| 47 | inputfile = '' |
| 48 | outputfile = '' |
| 49 | sourcedir = '' |
| 50 | try: |
| 51 | opts, args = getopt.getopt(argv,"hi:o:s:",["ifile=","ofile=","sdir="]) |
| 52 | except getopt.GetoptError: |
| 53 | print('fixcoveragepaths.py -i <inputfile> -s <sourcedirectory> -o <outputfile>') |
| 54 | sys.exit(2) |
| 55 | for opt, arg in opts: |
| 56 | if opt == '-h': |
| 57 | print('fixcoveragepaths.py -i <inputfile> -s <sourcedirectory> -o <outputfile>') |
| 58 | sys.exit() |
| 59 | elif opt in ("-i", "--ifile"): |
| 60 | inputfile = arg |
| 61 | elif opt in ("-o", "--ofile"): |
| 62 | outputfile = arg |
| 63 | elif opt in ("-s", "--sdir"): |
| 64 | sourcedir = arg |
| 65 | #print('Input file is ', inputfile) |
| 66 | #print ('Output file is ', outputfile) |
| 67 | #print ('Sources directory is ', sourcedir) |
| 68 | modifyXML(inputfile, sourcedir, outputfile) |
| 69 | |
| 70 | #---------------------------------------------------------------------- |
| 71 | if __name__ == "__main__": |
no test coverage detected