comparison garcon/messages.py @ 990:22cf13b86cc3

cm: Upgrade Garcon tasks to the latest PyInvoke version.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Nov 2017 14:29:52 -0800
parents 79aefe82c6b6
children
comparison
equal deleted inserted replaced
989:8adc27285d93 990:22cf13b86cc3
1 import os 1 import os
2 from invoke import task, run 2 from invoke import task, run
3 3
4 4
5 @task 5 @task
6 def genmessages(): 6 def genmessages(ctx):
7 root_dir = 'garcon/messages' 7 root_dir = 'garcon/messages'
8 out_dir = 'piecrust/resources/messages' 8 out_dir = 'piecrust/resources/messages'
9 run('python chef.py --root %s bake -o %s' % (root_dir, out_dir)) 9 run('python chef.py --root %s bake -o %s' % (root_dir, out_dir))
10 os.unlink('piecrust/resources/messages/index.html') 10 os.unlink('piecrust/resources/messages/index.html')
11 11