import sys, os, struct def main(): if len(sys.argv) != 2: print "USAGE: %s " % sys.argv[0] return trustlet_dir = sys.argv[1] version_map = {} for root, dirs, files in os.walk(trustlet_dir): for name in files: if not (name.endswith(".tlbin") or name.endswith(".drbin") or name.endswith(".tabin")): continue #Reading the length fields from the header trustlet = open(os.path.join(root, name), "rb").read() service_version = struct.unpack("