From f2b7bb7aa8a67046c6ac2f1d06e2705f36f6d8fa Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 20 Oct 2008 07:25:56 +0000 Subject: Move here svn path=/trunk/KDE/kdelibs/; revision=873796 --- modules/PythonCompile.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 modules/PythonCompile.py (limited to 'modules/PythonCompile.py') diff --git a/modules/PythonCompile.py b/modules/PythonCompile.py new file mode 100644 index 00000000..af859a22 --- /dev/null +++ b/modules/PythonCompile.py @@ -0,0 +1,4 @@ +# By Simon Edwards +# This file is in the public domain. +import py_compile +py_compile.main() -- cgit v1.2.1 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