1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env python # # Licence statement goes here # def read_templatefile(temp_filename): f = open(temp_filename, 'r') lines = f.read().splitlines() return lines