def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() links = [] required = [] with open('./requirements.txt') as f: for line in f: if "git" in line: links.append(line) else: required.append(line) print("we are building ", links, required)