libserialport/config-header.py

4 lines
162 B
Python
Raw Normal View History

pattern = str.join('', open("config-pattern").readlines())
for line in open("config-fields").readlines():
print pattern.format(*line.rstrip("\n").split(","))