* [PATCH 1/1] BaseTools: FMMT GuidTool Auto Select Config file
@ 2023-06-05 8:12 Yuwei Chen
2023-06-10 1:04 ` Rebecca Cran
0 siblings, 1 reply; 3+ messages in thread
From: Yuwei Chen @ 2023-06-05 8:12 UTC (permalink / raw)
To: devel; +Cc: Rebecca Cran, Liming Gao, Bob Feng
Currently, Python FMMT tool does not support automatically
select FMMTConf.ini file which saves GuidTool settings.
This patch support this features.
Cc: Rebecca Cran <rebecca@bsdio.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] BaseTools: FMMT GuidTool Auto Select Config file
2023-06-05 8:12 [PATCH 1/1] BaseTools: FMMT GuidTool Auto Select Config file Yuwei Chen
@ 2023-06-10 1:04 ` Rebecca Cran
2023-06-21 12:12 ` [edk2-devel] " Yuwei Chen
0 siblings, 1 reply; 3+ messages in thread
From: Rebecca Cran @ 2023-06-10 1:04 UTC (permalink / raw)
To: Yuwei Chen, devel; +Cc: Liming Gao, Bob Feng
That won't work on Unix, where the separator is ':', not ';'.
--
Rebecca Cran
On 6/5/23 02:12, Yuwei Chen wrote:
> Currently, Python FMMT tool does not support automatically
> select FMMTConf.ini file which saves GuidTool settings.
> This patch support this features.
>
> Cc: Rebecca Cran <rebecca@bsdio.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
> ---
> 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')
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [edk2-devel] [PATCH 1/1] BaseTools: FMMT GuidTool Auto Select Config file
2023-06-10 1:04 ` Rebecca Cran
@ 2023-06-21 12:12 ` Yuwei Chen
0 siblings, 0 replies; 3+ messages in thread
From: Yuwei Chen @ 2023-06-21 12:12 UTC (permalink / raw)
To: devel@edk2.groups.io, rebecca@bsdio.com; +Cc: Gao, Liming, Feng, Bob C
Hi Rebecca,
Thanks for reminder. Will update the patch later.
Thanks,
Christine
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Rebecca
> Cran
> Sent: Saturday, June 10, 2023 9:04 AM
> To: Chen, Christine <yuwei.chen@intel.com>; devel@edk2.groups.io
> Cc: Gao, Liming <gaoliming@byosoft.com.cn>; Feng, Bob C
> <bob.c.feng@intel.com>
> Subject: Re: [edk2-devel] [PATCH 1/1] BaseTools: FMMT GuidTool Auto Select
> Config file
>
> That won't work on Unix, where the separator is ':', not ';'.
>
>
> --
>
> Rebecca Cran
>
>
> On 6/5/23 02:12, Yuwei Chen wrote:
> > Currently, Python FMMT tool does not support automatically select
> > FMMTConf.ini file which saves GuidTool settings.
> > This patch support this features.
> >
> > Cc: Rebecca Cran <rebecca@bsdio.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Cc: Bob Feng <bob.c.feng@intel.com>
> > Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
> > ---
> > 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')
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-21 12:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-05 8:12 [PATCH 1/1] BaseTools: FMMT GuidTool Auto Select Config file Yuwei Chen
2023-06-10 1:04 ` Rebecca Cran
2023-06-21 12:12 ` [edk2-devel] " Yuwei Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox