MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / main

Function main

fixcoveragefilepaths.py:46–68  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

44 sys.exit(-1)
45
46def 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#----------------------------------------------------------------------
71if __name__ == "__main__":

Callers 1

Calls 1

modifyXMLFunction · 0.85

Tested by

no test coverage detected