From patchwork Fri Mar 31 08:45:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 18520 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 44392C329C for ; Fri, 31 Mar 2023 08:45:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 89DA362724; Fri, 31 Mar 2023 10:45:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1680252354; bh=D4aafr3DH8EbE+NElJQahOUqtpefXxKlgcKibu2Dxc0=; 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=JKh+KDFM+0yYGaylvlZwAKF2/cX9dba79Zms9VfJ6S+DE0sJw28SXvLAcSrFWUvBf m8yVQn8pxxdvjPVkKLQAuL+gHpwN473ss+Yk1pGgd4mO+VDajrGjAxSQCFPmQUIyRo xcbtz5cyq9E2NCyPAYSTTMjFI6DzsIf1emX3sA9UXCjcOoKVZTDfvJH9Uge+obv1Dr qHMbL//Qvl2PEKpRO0HTlcKViwnaNCbENHWtUZrX7LFed6fji3C2gJh+J4iR+tDl4T GoS74/9bwmhy/+vBuAjWqXNdcNUOZgpM2AXXrSb8BLpT5WmrvfnXlw2bl0GTOC8zzf 1+8GHuEk61WGQ== Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4024361ECB for ; Fri, 31 Mar 2023 10:45:53 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="g2e323KI"; dkim-atps=neutral Received: by mail-pg1-x536.google.com with SMTP id d10so12974018pgt.12 for ; Fri, 31 Mar 2023 01:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1680252351; x=1682844351; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z0ORpEZZPMjYaf/qaMbp0bQqXzmtJ6UMjwtyW/sBV/o=; b=g2e323KInlvIaXGqQSJQPFUP7aZkDd37WacQbpzZp5TTOQUyTpMlcsQpBSGGAol/to gl3Zy6wxnTm6rtQQKyNesj65DZtbGdZgSBAVp7YBHBRmYvAI5PaprHBmgGjB801HZyC4 6OqHV32U4GCVnk8cyeV6Mu2TMnqcnQZJAxbfw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680252351; x=1682844351; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z0ORpEZZPMjYaf/qaMbp0bQqXzmtJ6UMjwtyW/sBV/o=; b=1k823bkGbsJLdGhN1Ty9vjP1+o/tInJiSux2cixvALmYUE3hEBrUIG88sULDfq8Cez ChSIm1UzdOJpoIaK9QOwfnymk5pefqhJRGmyOeShHBsMdatUy7mJNEK3j4yd9WmX2yqU 8DEAklbQN3I8exS7LXybKoIgEamPz76O/RiHpNeg+oO8K2WPAmrzHoGmU6T3naLtwe1w vJh6zPirIv7JQ3AfM/8wPqNP/pzkqzsvvAk13z9p2JGygaoRYZpaikDCspEIqpZK1NYL 16f10sXT50aAH4B6Yhou1XRZ6ePAJrSubK3Ff9iFVWYgoIZcHa4xdaB+ChO96fUcTngC VGZw== X-Gm-Message-State: AAQBX9dIuRw1Fk4sd22KIEwVZ8/k648zne9WQJkQwWAz+ETeyr8fZUKE sCac2GL+RydaVBkMZoEniPbtI4uyMI2QdIO/Jnk= X-Google-Smtp-Source: AKy350a+1L5kwq+T1p4WzypR7i1KRHklWS8z81ms83hdggHKSQtiJWPsz2zWLufiN6NUBhl6TwY7oA== X-Received: by 2002:a62:7b52:0:b0:622:8a8e:8cf8 with SMTP id w79-20020a627b52000000b006228a8e8cf8mr9871867pfc.14.1680252351640; Fri, 31 Mar 2023 01:45:51 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (112.157.221.35.bc.googleusercontent.com. [35.221.157.112]) by smtp.gmail.com with ESMTPSA id m14-20020aa78a0e000000b006260526cf0csm1215535pfa.116.2023.03.31.01.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 01:45:51 -0700 (PDT) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Fri, 31 Mar 2023 08:45:45 +0000 Message-Id: <20230331084545.633068-2-chenghaoyang@google.com> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog In-Reply-To: <20230331084545.633068-1-chenghaoyang@google.com> References: <20230331084545.633068-1-chenghaoyang@google.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 1/1] utils: ipc: Update parser.py 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: Harvey Yang via libcamera-devel From: Harvey Yang Reply-To: Harvey Yang Cc: Harvey Yang , Harvey Yang Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder Tested-by: Han-Lin Chen --- utils/ipc/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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