Initial commit
This commit is contained in:
commit
3511dd75ac
5 changed files with 106 additions and 0 deletions
16
inflatinator/__main__.py
Normal file
16
inflatinator/__main__.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
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])
|
Loading…
Add table
Add a link
Reference in a new issue