Source

shinypress / scripts / shinypress

#!/usr/bin/env python

import sys
from shinypress import Presentation
from shinypress.themes import themes

# TODO: make this selectable
theme = themes['dark']

for filename in sys.argv[1:]:
    p = Presentation(filename, theme())
    output = p.render_pdf()

    outfile = filename + '.pdf'

    f = open(outfile, 'wb')
    f.write(output)
    f.close()