validate: Fix launching gst-validate-launcher in a meson based uninstalled env

This commit is contained in:
Thibault Saunier 2016-08-28 22:12:35 -03:00
parent 53d69adcaf
commit 40d803271c

View file

@ -52,6 +52,8 @@ def _add_gst_launcher_path():
dir_ = os.path.dirname(os.path.abspath(__file__))
root = os.path.split(dir_)[0]
elif __file__.startswith(BUILDDIR):
# Make sure to have the configured config.py in the python path
sys.path.insert(0, os.path.abspath(os.path.join(BUILDDIR, "..", "launcher")))
root = os.path.abspath(os.path.join(SRCDIR, "../"))
else:
root = os.path.join(LIBDIR, 'gst-validate-launcher', 'python')