diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-15 13:42:28 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-16 00:04:38 +0530 |
commit | 5e5b3f00d8485949634b4411d8304cc467ad8fc7 (patch) | |
tree | 9479277d86a4188034327ad9a9e1870923e6b255 /mesonbuild/modules/qt4.py | |
parent | d5f7ba862bb37ad75b68e007b8b55f40b6f6fd19 (diff) | |
download | meson-5e5b3f00d8485949634b4411d8304cc467ad8fc7.zip meson-5e5b3f00d8485949634b4411d8304cc467ad8fc7.tar.gz meson-5e5b3f00d8485949634b4411d8304cc467ad8fc7.tar.bz2 |
modules: Cache programs found by find_program
This avoids printing several 'Found:' messages during configure, and
also avoids doing several searches for the same binary. This is already
done by the interpreter for `find_program` calls from build files.
Also move it to the module-wide __init__.py file so it can be used by
other modules as-needed.
Also use it for g-ir-scanner where it was missed in one place, also fix
exception name in the same place.
Diffstat (limited to 'mesonbuild/modules/qt4.py')
-rw-r--r-- | mesonbuild/modules/qt4.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/qt4.py b/mesonbuild/modules/qt4.py index ab285fb..63dfef8 100644 --- a/mesonbuild/modules/qt4.py +++ b/mesonbuild/modules/qt4.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os, subprocess +import os from .. import mlog from .. import build from ..mesonlib import MesonException, Popen_safe |