def verify_deployment(self, dest): try: for item in os.listdir(self.deploysource): obj = mt.Diff(dest + "/" + item, self.deploysource + "/" + item) obj.make_trees() return obj.valid except Exception as e: print e return 0
__author__ = 'pramodkumar' import sys import MerkleTree as pr import os with open("Output.txt","w") as f: sys.stdout=f obj = pr.Diff(os.getcwd()+'/f1.txt', os.getcwd()+'/f3.txt') obj.make_trees()