summaryrefslogtreecommitdiff
path: root/utils/ipc
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-04 17:15:46 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2024-01-09 15:39:05 +0000
commit3e4a211ff482f4a91fafec2c623c5b4e046ffdec (patch)
tree1f80b2c39dc80d0334975450e70697157353708c /utils/ipc
parent3a74a36316ab962c9c8f05aaf0c9ff5497b9ed91 (diff)
utils: ipc: generate.py: Add bindings directory to Python path
Newer mojo versions import a 'checks' module located in the bindings directory. In preparation for a mojo update, add the directory to the Python path make the import work. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'utils/ipc')
-rwxr-xr-xutils/ipc/generate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/ipc/generate.py b/utils/ipc/generate.py
index 8771e0a6..afaf018b 100755
--- a/utils/ipc/generate.py
+++ b/utils/ipc/generate.py
@@ -12,6 +12,8 @@ import sys
# TODO set sys.pycache_prefix for >= python3.8
sys.dont_write_bytecode = True
+sys.path.insert(0, f'{os.path.dirname(__file__)}/mojo/public/tools/bindings')
+
import mojo.public.tools.bindings.mojom_bindings_generator as generator
def _GetModulePath(path, output_dir):