From f822ffead938ed8044611b9db226827482f48ad2 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 27 Jan 2017 16:54:21 -0300 Subject: [PATCH] Add meson/ to PYTHONPATH if needed --- gst-uninstalled.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-uninstalled.py b/gst-uninstalled.py index 1f5bf83740..7a2ebf8050 100755 --- a/gst-uninstalled.py +++ b/gst-uninstalled.py @@ -108,6 +108,11 @@ def get_subprocess_env(options): for pkg_dir in pkg_dirs: prepend_env_var(env, "PKG_CONFIG_PATH", pkg_dir) + mesonpath = os.path.join(SCRIPTDIR, "meson") + if os.path.join(mesonpath): + # Add meson/ into PYTHONPATH if we are using a local meson + prepend_env_var(env, 'PYTHONPATH', mesonpath) + return env