Mercurial > piecrust2
comparison piecrust/commands/builtin/baking.py @ 121:300eb1c2cb14
Fix stupid bug.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 12 Nov 2014 00:30:16 +0100 |
parents | 133845647083 |
children | bc63dc20baa0 |
comparison
equal
deleted
inserted
replaced
120:133845647083 | 121:300eb1c2cb14 |
---|---|
1 import time | |
1 import os.path | 2 import os.path |
2 import logging | 3 import logging |
3 import hashlib | 4 import hashlib |
4 import fnmatch | 5 import fnmatch |
5 import datetime | 6 import datetime |
37 if ctx.args.portable: | 38 if ctx.args.portable: |
38 # Disable pretty URLs because there's likely not going to be | 39 # Disable pretty URLs because there's likely not going to be |
39 # a web server to handle serving default documents. | 40 # a web server to handle serving default documents. |
40 ctx.app.config.set('site/pretty_urls', False) | 41 ctx.app.config.set('site/pretty_urls', False) |
41 | 42 |
43 start_time = time.clock() | |
42 try: | 44 try: |
43 # Bake the site sources. | 45 # Bake the site sources. |
44 self._bakeSources(ctx) | 46 self._bakeSources(ctx) |
45 | 47 |
46 # Bake the assets. | 48 # Bake the assets. |