validate: Make validate launcher apps work in a meson uninstalled env

This commit is contained in:
Thibault Saunier 2017-01-03 14:38:24 -03:00
parent ce0d2ee3e1
commit cd00052728
2 changed files with 4 additions and 1 deletions

View file

@ -16,3 +16,6 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301, USA.
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)

View file

@ -53,7 +53,7 @@ def _add_gst_launcher_path():
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")))
sys.path.insert(0, os.path.abspath(os.path.join(BUILDDIR, "..")))
root = os.path.abspath(os.path.join(SRCDIR, "../"))
else:
root = os.path.join(LIBDIR, 'gst-validate-launcher', 'python')