openmedialibrary/static/pdf.js/minify.py
2014-05-12 04:09:31 +02:00

3 lines
103 B
Python

import ox
import sys
with open(sys.argv[2], 'w') as f: f.write(ox.js.minify(open(sys.argv[1]).read()))