0

In order to troubleshoot my Python Gstreamer app, I cloned and added some debug statements to the Gstreamer core. Now I want Python to load my private build of gstreamer, instead of the standard one in /usr/local/lib/gstreamer-1.0/. For the Gstreamer core, I modified LD_LIBRARY_PATH, but this has no effect. For the record, I'm running on 3.13.0-91-generic #138-Ubuntu.

I was able to do something similar for Gstreamer plugins using the env var GST_PLUGIN_PATH. I suspect that Gobject may use it's own environment variable to load libraries, but I haven't found it.

1 Answer 1

3
gi.require_version('GIRepository', '2.0')
from gi.repository import GIRepository
GIRepository.Repository.prepend_library_path('/my/custom/path')
Sign up to request clarification or add additional context in comments.

1 Comment

I think you would want to .get_default() on GIRepository.Repository before calling the prepend

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.