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>
This commit is contained in:
Harvey Yang 2023-03-31 08:45:45 +00:00 committed by Laurent Pinchart
parent 44eed506c2
commit c1cc37b2ee

View file

@ -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