コード例 #1
0
def customize_files_compare(script_path, repopath, mooncakepath, filelist):
    mdlist = [
        repopath + "/" + x.strip() for x in filelist
        if x.strip()[len(x.strip()) - 3:] == ".md"
    ]
    for filepath in mdlist:
        print("Proccessing: " + filepath)
        customize_compare(filepath, script_path, repopath, mooncakepath)
コード例 #2
0
def customize_files_compare_smartgit(script_path, repopath, mooncakepath,
                                     filelist_temp):
    file = open(filelist_temp, "r")
    filelist = file.readlines()

    file.close()
    mdlist = [
        x.strip() for x in filelist if x.strip()[len(x.strip()) - 3:] == ".md"
    ]
    for filepath in mdlist:
        print("Proccessing: " + filepath)
        customize_compare(filepath, script_path, repopath, mooncakepath)