From patchwork Thu Jan 4 15:15:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 19367 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 7CE4DC32BE for ; Thu, 4 Jan 2024 15:15:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D269462B66; Thu, 4 Jan 2024 16:15:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1704381350; bh=d561R2m6LcHnmXCghnemOGkxWms6gxxfo0lP58P5syo=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=HO9QfuqpNCSkZXXB0I8bZlyX536IKGaacqSbkmEon7DzJY/8U51sEH4sa50q+/jAz eKzvMFuwRdmxxzsYpUylQ8nzitLNm3tSNkf9SpoquvudkIorpASaiXp1xYyYQDuf2n 1OOFRienH7cy4IQVh46mm7rzpSTwq4AxSI8y6pNxl5e6to+cWBKv1/tuY1f/WoMzSK 2fMFI08Cumk2ya+intWp/AQPNLYqvzTP6VNA/rBS79MAP5VnbD2w59s2u9Z9la96O2 X0maaHoE5WQTxWX2Wmb5KzUEzo/KEgfmy8YhMtcmETgEPBD/FL2xQwF+/HaCLs2SvV Aj0edO2Oy4hiQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 128AC61D82 for ; Thu, 4 Jan 2024 16:15:48 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="QjVXojO+"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6481622E8; Thu, 4 Jan 2024 16:14:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1704381287; bh=d561R2m6LcHnmXCghnemOGkxWms6gxxfo0lP58P5syo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QjVXojO+UAl3e57Iq4k2LdawoMeo3Hggb75iEYs1+3vTmNKYcI31fNRnrHAmSWyaH P6uzBXNf4j/8KNtmSrS5pNTPDHzBC/oSNEYgWphAYpl0G82rdACj+5sVkSTtFaD6Zd EctsXNqoKsDeXhdWuv+y2IpIZlqpV3eqifgLc6ck= 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 Subject: [libcamera-devel] [PATCH 6/8] utils: ipc: generate.py: Add bindings directory to Python path X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Cc: Khem Raj Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Milan Zamazal Reviewed-by: Kieran Bingham --- utils/ipc/generate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/ipc/generate.py b/utils/ipc/generate.py index 8771e0a6b9e3..afaf018b49d1 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):