예제 #1
0
def customize_files(script_path, repopath, 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(filepath, script_path)
예제 #2
0
def customize_files_smartgit(script_path, 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(filepath, script_path)