From 455e55f8e51c328400c36d65a15d76e7c4be08eb Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 2 Mar 2016 21:49:29 +0200 Subject: Back to .py suffix in files. Closes #394. --- run_tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'run_tests.py') diff --git a/run_tests.py b/run_tests.py index e85a6d6ce..7e799cb70 100755 --- a/run_tests.py +++ b/run_tests.py @@ -46,6 +46,10 @@ print_debug = 'MESON_PRINT_TEST_OUTPUT' in os.environ test_build_dir = 'work area' install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir') meson_command = os.path.join(os.getcwd(), 'meson') +if not os.path.exists(meson_command): + meson_command += '.py' + if not os.path.exists(meson_command): + raise RuntimeError('Could not find main Meson script to run.') class StopException(Exception): def __init__(self): -- cgit v1.2.3