summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarvey Yang <chenghaoyang@chromium.org>2023-03-31 08:45:45 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-04-05 08:24:11 +0300
commitc1cc37b2eeea33cbc0bdd1fe0d3ce57d2f321a85 (patch)
tree209c98a2446ce60059c1cba30c2321bcfe3d3df3
parent44eed506c285f090b97377f3cc3023cd09221cac (diff)
utils: ipc: Update parser.py
Make the local mojom library the first priority in the sys path, to avoid mixing the local one with the system one in build. Tested on chromebook soraka-libcamera. Signed-off-by: Harvey Yang <chenghaoyang@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xutils/ipc/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ipc/parser.py b/utils/ipc/parser.py
index f46820fa..231a3266 100755
--- a/utils/ipc/parser.py
+++ b/utils/ipc/parser.py
@@ -13,7 +13,7 @@ import sys
sys.dont_write_bytecode = True
# Make sure that mojom_parser.py can import mojom
-sys.path.append(f'{os.path.dirname(__file__)}/mojo/public/tools/mojom')
+sys.path.insert(0, f'{os.path.dirname(__file__)}/mojo/public/tools/mojom')
import mojo.public.tools.mojom.mojom_parser as parser