Navigation Menu

Skip to content

Commit

Permalink
add a hack for comet cms
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 5, 2015
1 parent d667c05 commit 167f5e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nikola/__main__.py
Expand Up @@ -58,6 +58,9 @@

config = {}

# DO NOT USE unless you know what you are doing!
_RETURN_DOITNIKOLA = False


def main(args=None):
colorful = False
Expand Down Expand Up @@ -144,7 +147,10 @@ def main(args=None):
config['__configuration_filename__'] = conf_filename

site = Nikola(**config)
_ = DoitNikola(site, quiet).run(args)
DN = DoitNikola(site, quiet)
if _RETURN_DOITNIKOLA:
return DN
_ = DN.run(args)

if site.invariant:
freeze.stop()
Expand Down

0 comments on commit 167f5e3

Please sign in to comment.