in scripts/file_script.py [0:0]
def gen_all_file_strings(path, files, headers, output):
for file in files:
components = file.split("_")
package = components[0] + ":" + components[2].replace(".list", "")
f = open(path + file)
for line in f:
if line.strip()[-1] == "/":
continue
filepath = line[line.find("/"):]
output.write(package + ":" + filepath)
if filepath.startswith(keyword):
headers.write(package + ":" + filepath[len(keyword):])
f.close()