Mercurial > piecrust2
comparison piecrust/main.py @ 44:a62452ab5080
Correctly set the `debug` flag on the app.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 21 Aug 2014 22:52:18 -0700 |
parents | 2f717f961996 |
children | c8c522dacfea |
comparison
equal
deleted
inserted
replaced
43:f14889d6b067 | 44:a62452ab5080 |
---|---|
139 root = None | 139 root = None |
140 | 140 |
141 if not root: | 141 if not root: |
142 app = NullPieCrust() | 142 app = NullPieCrust() |
143 else: | 143 else: |
144 app = PieCrust(root, cache=pre_args.cache) | 144 app = PieCrust(root, cache=pre_args.cache, debug=pre_args.debug) |
145 | 145 |
146 # Handle a configuration variant. | 146 # Handle a configuration variant. |
147 if pre_args.config_variant is not None: | 147 if pre_args.config_variant is not None: |
148 if not root: | 148 if not root: |
149 raise SiteNotFoundError("Can't apply any variant.") | 149 raise SiteNotFoundError("Can't apply any variant.") |