openmedialibrary_reader/pdf.js/minify.py

4 lines
103 B
Python
Raw Normal View History

2015-03-07 19:41:19 +00:00
import ox
import sys
with open(sys.argv[2], 'w') as f: f.write(ox.js.minify(open(sys.argv[1]).read()))