revbank-inflatinator/inflatinator/__main__.py
2024-01-05 16:18:40 +01:00

16 lines
286 B
Python

import revbank
import sys
def main(product_file):
with open(product_file, 'r') as fd:
src = fd.read()
new_src = revbank.update_product_pricings(src)
with open(product_file, 'w') as fd:
fd.write(new_src)
if __name__ == '__main__':
main(sys.argv[1])