22 from __future__
import print_function
27 if __name__ ==
'__main__':
28 parser = argparse.ArgumentParser(
29 description=
'Compares all the .xacro in two folders.')
30 parser.add_argument(
'folder1')
31 parser.add_argument(
'folder2')
32 args = parser.parse_args()
33 files1 = set([i
for i
in os.listdir(args.folder1)
34 if i.endswith(
'.xacro')])
35 files2 = set([i
for i
in os.listdir(args.folder2)
36 if i.endswith(
'.xacro')])
37 for i
in files1.intersection(files2):
39 os.path.join(args.folder2, i))
41 print(
'---------------------------------------------------------')
42 print(
'File %s in common' % i)
43 print(
'---------------------------------------------------------')
def compareFiles(filename1, filename2)