Mike: WORKSPACE env has been converted in the previous logic. Build.py line 101, WorkspaceDir = os.path.normcase(os.path.normpath(os.environ["WORKSPACE"])). Here, I convert PACKAGES_PATH and EDK_TOOLS_BIN to be consistent print style with WORKSPACE env.
Thanks Liming -----Original Message----- From: Kinney, Michael D Sent: Thursday, November 05, 2015 7:46 AM To: Gao, Liming; edk2-devel@lists.01.org; Kinney, Michael D Subject: RE: [edk2] [Patch] BaseTools: Print PACKAGES_PATH build environment if it is set. Liming, Why do you a different method than WORKSPACE to display the PACKAGES_PATH and EDK_TOOLS_BIN environment variables? Thanks, Mike >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >Liming Gao >Sent: Tuesday, November 03, 2015 5:15 PM >To: edk2-devel@lists.01.org >Subject: [edk2] [Patch] BaseTools: Print PACKAGES_PATH build >environment if it is set. > >Print the optional build environment PACKAGES_PATH and EDK_TOOLS_BIN. > >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Liming Gao <liming....@intel.com> >--- > BaseTools/Source/Python/build/build.py | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/BaseTools/Source/Python/build/build.py >b/BaseTools/Source/Python/build/build.py >index 30ff5bb..67bd3b3 100644 >--- a/BaseTools/Source/Python/build/build.py >+++ b/BaseTools/Source/Python/build/build.py >@@ -780,10 +780,14 @@ class Build(): > > # print current build environment and configuration > EdkLogger.quiet("%-16s = %s" % ("WORKSPACE", >os.environ["WORKSPACE"])) >+ if "PACKAGES_PATH" in os.environ: >+ EdkLogger.quiet("%-16s = %s" % ("PACKAGES_PATH", >os.path.normcase(os.path.normpath(os.environ["PACKAGES_PATH"])))) > EdkLogger.quiet("%-16s = %s" % ("ECP_SOURCE", >os.environ["ECP_SOURCE"])) > EdkLogger.quiet("%-16s = %s" % ("EDK_SOURCE", >os.environ["EDK_SOURCE"])) > EdkLogger.quiet("%-16s = %s" % ("EFI_SOURCE", >os.environ["EFI_SOURCE"])) > EdkLogger.quiet("%-16s = %s" % ("EDK_TOOLS_PATH", >os.environ["EDK_TOOLS_PATH"])) >+ if "EDK_TOOLS_BIN" in os.environ: >+ EdkLogger.quiet("%-16s = %s" % ("EDK_TOOLS_BIN", >os.path.normcase(os.path.normpath(os.environ["EDK_TOOLS_BIN"])))) > > EdkLogger.info("") > >-- >1.9.5.msysgit.0 > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel