From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.2397.1685952765098674481 for ; Mon, 05 Jun 2023 01:12:45 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=QCy/yWZd; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: yuwei.chen@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685952765; x=1717488765; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Rq3zTXwE11ux8xUctmUCZHiZAl5M7q9kmBpNhRxwdUY=; b=QCy/yWZdORVakkLZwoPB5Wmy3vw84CNG2NMAF0+BeGCvCjernuxMhcQF vn6aqtLpoYvh8chgnco3KsNCiLfrrwYpSce2hL375kBS22Ra2ZEBx/1Ik yeJsR95R1Mbgj+mlMq9T89Lr+mAP5sk4JeyccCSzN4oKA+lxhvpdVHrTf TkdLK0N1TzNysAv5dNxbS79mFz8hrteo/fY9jB24Snw26+dyoSMbBHRrk jEYd1AOutKQsEec8k/8RZkr8US8ZkHV/galMs8XnFnc2Aw7eYCV7l2fvE aidq3YEoK+1QZAjkH26gIBRDYi3rdEtT/1EZZgWEOhQGHhLAqOf7IyOup A==; X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="384611253" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="384611253" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2023 01:12:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="821097135" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="821097135" Received: from yuweipc.ccr.corp.intel.com ([10.239.158.24]) by fmsmga002.fm.intel.com with ESMTP; 05 Jun 2023 01:12:43 -0700 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Rebecca Cran , Liming Gao , Bob Feng Subject: [PATCH 1/1] BaseTools: FMMT GuidTool Auto Select Config file Date: Mon, 5 Jun 2023 16:12:35 +0800 Message-Id: <20230605081235.1991-1-yuwei.chen@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently, Python FMMT tool does not support automatically select FMMTConf.ini file which saves GuidTool settings. This patch support 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/Source/Python/FMMT/core/GuidTools.py index a25681709bc8..671d77c47de9 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']: self.tooldef_file = os.path.join(os.environ['FmmtConfPath'], 'FmmtConf.ini') else: - PathList = os.environ['PATH'] + PathList = os.environ['PATH'].split(';') for CurrentPath in PathList: if os.path.exists(os.path.join(CurrentPath, 'FmmtConf.ini')): self.tooldef_file = os.path.join(CurrentPath, 'FmmtConf.ini') -- 2.27.0.windows.1