5 from binaryornot.check import is_binary
7 hasher = hashlib.sha256()
8 parser = argparse.ArgumentParser()
10 parser.add_argument('--project', help="Full path to project folder", \
12 args = parser.parse_args()
13 ignore_dirs = ['.git']
14 sys.stdout = open('output.yaml' , 'w')
17 for root, dirs, files in os.walk(args.project):
18 dirs[:] = [d for d in dirs if d not in ignore_dirs]
20 path = os.path.join(root, file)
22 with open(path, 'rb') as afile:
25 print " {}".format(file)
26 sum = hasher.hexdigest()
27 print " - {}".format(sum)
29 print("script run complete, now copy and paste contents of output.yaml into \
30 your project exception yaml file")