Mercurial > piecrust2
diff garcon/messages.py @ 642:79aefe82c6b6
cm: Move all scripts into a `garcon` package with `invoke` support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 14 Feb 2016 22:11:24 -0800 |
parents | |
children | 22cf13b86cc3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/garcon/messages.py Sun Feb 14 22:11:24 2016 -0800 @@ -0,0 +1,11 @@ +import os +from invoke import task, run + + +@task +def genmessages(): + root_dir = 'garcon/messages' + out_dir = 'piecrust/resources/messages' + run('python chef.py --root %s bake -o %s' % (root_dir, out_dir)) + os.unlink('piecrust/resources/messages/index.html') +