From a782299e9129694bc6883bb1637d7caca6532471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20H=C3=B6glund?= Date: Fri, 27 Mar 2020 10:51:00 +0100 Subject: [PATCH] Add PYTHONPATH entry for proto internal. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turns out my new protobuf internal entries are copied to the out dir, so we need a new entry for that. Tbr: mbonadei@webrtc.org Bug: chromium:1029452 Change-Id: I5bcae3a7ff1163e051382ae741646f206ccc7324 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/171869 Reviewed-by: Patrik Höglund Cr-Commit-Position: refs/heads/master@{#30918} --- audio/test/low_bandwidth_audio_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audio/test/low_bandwidth_audio_test.py b/audio/test/low_bandwidth_audio_test.py index 4e219691e2..3973a61965 100755 --- a/audio/test/low_bandwidth_audio_test.py +++ b/audio/test/low_bandwidth_audio_test.py @@ -232,6 +232,9 @@ def _ConfigurePythonPath(args): histogram_proto_path = os.path.join( os.path.abspath(args.build_dir), 'pyproto', 'tracing', 'tracing', 'proto') sys.path.insert(0, histogram_proto_path) + google_protobuf_path = os.path.join( + os.path.abspath(args.build_dir), 'pyproto') + sys.path.insert(0, google_protobuf_path) # Fail early in case the proto hasn't been built. try: