def __init__(self, f): basename = os.path.basename(f[:-1]) self.description = basename mprefix = os.path.join(PathInfo.md5dir, basename) md5file = mprefix + '.json' ignfile = os.path.join(PathInfo.inpdir, basename) + '.ignore' info = MD5Info() self.skip = False self.whySkip = "" self.openIssue = False if os.path.exists(ignfile): self.skip = True with open(ignfile, "r") as f: self.whySkip = f.read() if os.path.exists(md5file): f = open(md5file, 'rb') if six.PY3: six.exec_(f.read(), info) else: six.exec_(f.read(), info) f.close() if info.good_md5 in [[], ['sentinel']]: # This is an open issue or something that can't be checked automatically self.openIssue = True
def __init__(self, f): basename = os.path.basename(f) self.description = basename mprefix = os.path.join(PathInfo.md5dir, basename)[:-4] md5file = mprefix + '.json' ignfile = os.path.join(PathInfo.inpdir, basename[:-4]) + '.ignore' info = MD5Info() self.skip = False self.openIssue = False if os.path.exists(ignfile): self.skip = True if os.path.exists(md5file): with open(md5file, 'rb') as f: exec(f.read(), info) if info.good_md5 in [[], ['sentinel']]: # This is an open issue or something that can't be checked automatically self.openIssue = True