{"id":19367,"url":"https://patchwork.libcamera.org/api/patches/19367/?format=json","web_url":"https://patchwork.libcamera.org/patch/19367/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240104151548.2589-7-laurent.pinchart@ideasonboard.com>","date":"2024-01-04T15:15:46","name":"[libcamera-devel,6/8] utils: ipc: generate.py: Add bindings directory to Python path","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"7286dc5bd35c1bf3d1d2254038664eee1fd40226","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/19367/mbox/","series":[{"id":4132,"url":"https://patchwork.libcamera.org/api/series/4132/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4132","date":"2024-01-04T15:15:40","name":"libcamera: Update mojo and mojo updater","version":1,"mbox":"https://patchwork.libcamera.org/series/4132/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/19367/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/19367/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 7CE4DC32BE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  4 Jan 2024 15:15:51 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D269462B66;\n\tThu,  4 Jan 2024 16:15:50 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 128AC61D82\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  4 Jan 2024 16:15:48 +0100 (CET)","from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi\n\t[213.243.189.158])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 6481622E8;\n\tThu,  4 Jan 2024 16:14:47 +0100 (CET)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1704381350;\n\tbh=d561R2m6LcHnmXCghnemOGkxWms6gxxfo0lP58P5syo=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:\n\tFrom;\n\tb=HO9QfuqpNCSkZXXB0I8bZlyX536IKGaacqSbkmEon7DzJY/8U51sEH4sa50q+/jAz\n\teKzvMFuwRdmxxzsYpUylQ8nzitLNm3tSNkf9SpoquvudkIorpASaiXp1xYyYQDuf2n\n\t1OOFRienH7cy4IQVh46mm7rzpSTwq4AxSI8y6pNxl5e6to+cWBKv1/tuY1f/WoMzSK\n\t2fMFI08Cumk2ya+intWp/AQPNLYqvzTP6VNA/rBS79MAP5VnbD2w59s2u9Z9la96O2\n\tX0maaHoE5WQTxWX2Wmb5KzUEzo/KEgfmy8YhMtcmETgEPBD/FL2xQwF+/HaCLs2SvV\n\tAj0edO2Oy4hiQ==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1704381287;\n\tbh=d561R2m6LcHnmXCghnemOGkxWms6gxxfo0lP58P5syo=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=QjVXojO+UAl3e57Iq4k2LdawoMeo3Hggb75iEYs1+3vTmNKYcI31fNRnrHAmSWyaH\n\tP6uzBXNf4j/8KNtmSrS5pNTPDHzBC/oSNEYgWphAYpl0G82rdACj+5sVkSTtFaD6Zd\n\tEctsXNqoKsDeXhdWuv+y2IpIZlqpV3eqifgLc6ck="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"QjVXojO+\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  4 Jan 2024 17:15:46 +0200","Message-ID":"<20240104151548.2589-7-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.41.0","In-Reply-To":"<20240104151548.2589-1-laurent.pinchart@ideasonboard.com>","References":"<20240104151548.2589-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 6/8] utils: ipc: generate.py: Add bindings\n\tdirectory to Python path","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Cc":"Khem Raj <raj.khem@gmail.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Newer mojo versions import a 'checks' module located in the bindings\ndirectory. In preparation for a mojo update, add the directory to the\nPython path make the import work.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n utils/ipc/generate.py | 2 ++\n 1 file changed, 2 insertions(+)","diff":"diff --git a/utils/ipc/generate.py b/utils/ipc/generate.py\nindex 8771e0a6b9e3..afaf018b49d1 100755\n--- a/utils/ipc/generate.py\n+++ b/utils/ipc/generate.py\n@@ -12,6 +12,8 @@ import sys\n # TODO set sys.pycache_prefix for >= python3.8\n sys.dont_write_bytecode = True\n \n+sys.path.insert(0, f'{os.path.dirname(__file__)}/mojo/public/tools/bindings')\n+\n import mojo.public.tools.bindings.mojom_bindings_generator as generator\n \n def _GetModulePath(path, output_dir):\n","prefixes":["libcamera-devel","6/8"]}