diff options
author | David Faure <faure@kde.org> | 2011-02-04 21:14:26 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2011-02-04 21:15:18 +0100 |
commit | d35f5a88af08aa6658ca5871c58e0332182da30f (patch) | |
tree | a3533555d4d90dc216a3182c3ae795c136e4b601 /modules/PythonCompile.py | |
parent | 6e130dd0d36dab1994ea88e19718d2f96bf00d24 (diff) | |
download | extra-cmake-modules-d35f5a88af08aa6658ca5871c58e0332182da30f.tar.gz extra-cmake-modules-d35f5a88af08aa6658ca5871c58e0332182da30f.tar.bz2 |
Abort compilation immediately when python compiling fails.
Rather than aborting at install time when the .pyc file can't be found.
Diffstat (limited to 'modules/PythonCompile.py')
-rw-r--r-- | modules/PythonCompile.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 <simon@simonzone.com> # This file is in the public domain. -import py_compile -py_compile.main() +import py_compile, sys +sys.exit(py_compile.main()) |