From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A27B49414A1 for ; Fri, 15 Dec 2023 09:11:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nXnIHimCVNJD3d88MqJowwcst4jMJaVUPN6KvyDKL3M=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1702631517; v=1; b=NeVAjTrIy0WIfPn54rP9ZZU2xNhzPevH/kZf+wBS01ck4tUhtNAi4Bv9at+Z58qVXCoyRpCf qjXSgVClDLBhONWbh95eu/I6U9PrKIPSScwOIt3U5xzlTRWv0C1uSe5ep+1qHbm/A6dqQeoGB2P rJUILUOIu0wk4WkkfJgOq1Oo= X-Received: by 127.0.0.2 with SMTP id KjjtYY7687511xTUz50SxFaE; Fri, 15 Dec 2023 01:11:57 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mx.groups.io with SMTP id smtpd.web10.58686.1702631516292054659 for ; Fri, 15 Dec 2023 01:11:56 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="16801535" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="16801535" X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 01:11:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="774703164" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="774703164" X-Received: from yuweipc.ccr.corp.intel.com ([10.239.158.55]) by orsmga002.jf.intel.com with ESMTP; 15 Dec 2023 01:11:54 -0800 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Rebecca Cran , Liming Gao , Bob Feng Subject: [edk2-devel] [PATCH] BaseTools: FMMT GuidTool Auto Select Config file Enabling Date: Fri, 15 Dec 2023 17:11:51 +0800 Message-Id: <20231215091151.62-1-yuwei.chen@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,yuwei.chen@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: IIR42fURflnpiEJGzIuIJuh8x7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=NeVAjTrI; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4624 Currently, Python FMMT tool does not support automatically select FMMTConf.ini file which saves GuidTool settings. This patch supports this features. Cc: Rebecca Cran Cc: Liming Gao Cc: Bob Feng Signed-off-by: Yuwei Chen --- BaseTools/Source/Python/FMMT/core/GuidTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/FMMT/core/GuidTools.py b/BaseTools/Sou= rce/Python/FMMT/core/GuidTools.py index a25681709b..f6bdeffa50 100644 --- a/BaseTools/Source/Python/FMMT/core/GuidTools.py +++ b/BaseTools/Source/Python/FMMT/core/GuidTools.py @@ -110,7 +110,7 @@ class GUIDTools: if os.environ['FmmtConfPath']:=0D self.tooldef_file =3D os.path.join(os.environ['FmmtConfPath'],= 'FmmtConf.ini')=0D else:=0D - PathList =3D os.environ['PATH']=0D + PathList =3D os.environ['PATH'].split(os.pathsep)=0D for CurrentPath in PathList:=0D if os.path.exists(os.path.join(CurrentPath, 'FmmtConf.ini'= )):=0D self.tooldef_file =3D os.path.join(CurrentPath, 'FmmtC= onf.ini')=0D --=20 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112587): https://edk2.groups.io/g/devel/message/112587 Mute This Topic: https://groups.io/mt/103187642/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-