Mercurial > piecrust2
comparison piecrust/main.py @ 103:028df35a690e 2.0.0-alpha4
Fix using `chef` outside of a website.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 15 Sep 2014 08:11:56 -0700 |
parents | 8703be118430 |
children | 0a1736ef740d |
comparison
equal
deleted
inserted
replaced
102:343befeb936f | 103:028df35a690e |
---|---|
46 self.plugins_dirs = [] | 46 self.plugins_dirs = [] |
47 self.theme_dir = None | 47 self.theme_dir = None |
48 self.cache_dir = None | 48 self.cache_dir = None |
49 self.config = PieCrustConfiguration() | 49 self.config = PieCrustConfiguration() |
50 self.plugin_loader = PluginLoader(self) | 50 self.plugin_loader = PluginLoader(self) |
51 self.env = StandardEnvironment() | 51 self.env = None |
52 self.env.initialize(self) | |
53 | 52 |
54 | 53 |
55 def main(): | 54 def main(): |
56 argv = sys.argv | 55 argv = sys.argv |
57 pre_args = _pre_parse_chef_args(argv) | 56 pre_args = _pre_parse_chef_args(argv) |