summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-01-03 14:38:24 -0300
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-01-03 14:38:24 -0300
commitcd00052728a640d81f5d528c85b81e297351b403 (patch)
tree6093dd684c4dfa78da8dafabafdddadbaa96f50e
parentce0d2ee3e152ad182bb1c4a189cf486fdf8aadfd (diff)
validate: Make validate launcher apps work in a meson uninstalled env
-rw-r--r--validate/launcher/__init__.py3
-rwxr-xr-xvalidate/tools/gst-validate-launcher.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/validate/launcher/__init__.py b/validate/launcher/__init__.py
index 13694d6507..f772b2eb68 100644
--- a/validate/launcher/__init__.py
+++ b/validate/launcher/__init__.py
@@ -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__)
diff --git a/validate/tools/gst-validate-launcher.in b/validate/tools/gst-validate-launcher.in
index 40013bcfda..bc38c3ddb8 100755
--- a/validate/tools/gst-validate-launcher.in
+++ b/validate/tools/gst-validate-launcher.in
@@ -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')