Commit d0156741 authored by Thibault Saunier's avatar Thibault Saunier

Fix getpluginsdir when run standalone

We should not make the fact that we do not find a pluginsdir
fatal as for gst-plugins-good we have no way to retrieve
it but still it is needed in the uninstalled case.
parent fdd72f28
......@@ -16,10 +16,12 @@ for i in range(0, len(args), 2):
res += ':' + path
else:
try:
res += ':' + subprocess.check_output(['pkg-config',
'--variable=pluginsdir',
pkg_name]).decode()
except subprocess.CalledProcessError:
exit(1)
res += ':' + subprocess.check_output([
'pkg-config', '--variable=pluginsdir',
pkg_name]).decode().replace("\n", "")
except subprocess.CalledProcessError as e:
# Probably means there is no .pc file for the module
# and it should hopefully no be too bad.
pass
print(res.strip(":"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment