From c63eb8507059eacfbf6a33a265f11f32439f5079 Mon Sep 17 00:00:00 2001 From: Skami18 Date: Fri, 25 Nov 2011 18:39:19 +0100 Subject: [PATCH] `exit` replaced by `sys.exit` to avoid crashes on cx_Freeze & py2exe (useful for Windows installer) --- pelican/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/__init__.py b/pelican/__init__.py index 745b1fbe..d5cf2d04 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -1,5 +1,5 @@ import argparse -import os +import os, sys import time from pelican.generators import (ArticlesGenerator, PagesGenerator, @@ -157,7 +157,7 @@ def main(): if (args.verbosity == log.DEBUG): raise else: - exit(getattr(e, 'exitcode', 1)) + sys.exit(getattr(e, 'exitcode', 1)) if __name__ == '__main__':