mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +03:00
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:
parent
44eed506c2
commit
c1cc37b2ee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue