From c1cc37b2eeea33cbc0bdd1fe0d3ce57d2f321a85 Mon Sep 17 00:00:00 2001 From: Harvey Yang Date: Fri, 31 Mar 2023 08:45:45 +0000 Subject: 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 Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder Signed-off-by: Laurent Pinchart --- utils/ipc/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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 -- cgit v1.2.1