mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 06:52:41 +00:00
docs: doc-cache-generator: Pass the full os.environ so pkg-config
can be found
We want to pass the `PATH` from the current environment. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8327>
This commit is contained in:
parent
ed7b210ae7
commit
2ff6a3ecb6
1 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,6 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
|
||||||
from pathlib import Path as P
|
from pathlib import Path as P
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
|
||||||
|
@ -51,7 +50,7 @@ PROJECT_NAME_MAP = {
|
||||||
|
|
||||||
|
|
||||||
def get_c_flags(dep, buildroot, uninstalled=True):
|
def get_c_flags(dep, buildroot, uninstalled=True):
|
||||||
env = {}
|
env = os.environ.copy()
|
||||||
if uninstalled:
|
if uninstalled:
|
||||||
env['PKG_CONFIG_PATH'] = os.path.join(buildroot, 'meson-uninstalled')
|
env['PKG_CONFIG_PATH'] = os.path.join(buildroot, 'meson-uninstalled')
|
||||||
res = subprocess.run(['pkg-config', '--cflags', dep], env=env, capture_output=True)
|
res = subprocess.run(['pkg-config', '--cflags', dep], env=env, capture_output=True)
|
||||||
|
|
Loading…
Reference in a new issue