diff options
author | Harvey Yang <chenghaoyang@chromium.org> | 2023-03-31 08:45:45 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-04-05 08:24:11 +0300 |
commit | c1cc37b2eeea33cbc0bdd1fe0d3ce57d2f321a85 (patch) | |
tree | 209c98a2446ce60059c1cba30c2321bcfe3d3df3 /utils/ipc | |
parent | 44eed506c285f090b97377f3cc3023cd09221cac (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>
Diffstat (limited to 'utils/ipc')
-rwxr-xr-x | utils/ipc/parser.py | 2 |
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 |