From d35f5a88af08aa6658ca5871c58e0332182da30f Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 4 Feb 2011 21:14:26 +0100 Subject: Abort compilation immediately when python compiling fails. Rather than aborting at install time when the .pyc file can't be found. --- modules/PythonCompile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/PythonCompile.py') diff --git a/modules/PythonCompile.py b/modules/PythonCompile.py index af859a22..156fea28 100644 --- a/modules/PythonCompile.py +++ b/modules/PythonCompile.py @@ -1,4 +1,4 @@ # By Simon Edwards # This file is in the public domain. -import py_compile -py_compile.main() +import py_compile, sys +sys.exit(py_compile.main()) -- cgit v1.2.1