openmedialibrary/static/pdf.js/minify.py

4 lines
103 B
Python
Raw Normal View History

2014-05-04 17:26:43 +00:00
import ox
import sys
with open(sys.argv[2], 'w') as f: f.write(ox.js.minify(open(sys.argv[1]).read()))