Hauch, Larry [mailto:larry.ha...@intel.com] wrote:
]Hi, ]Actually, ORIGINAL_PATH is not a local variable, but is used as a flag so that when Edk2Setup (or edksetup) is run multiple times ]in the same command prompt window, the EDK II BaseTools path does not get added more than one time, along with other changes to ]the PATH. ]The design allowed for using Edk2Setup once with --nt32 for including visual studio tools, then run it a second time without the ]flag and the visual studio tools would be cleared from the PATH. ]Cheers, ]Larry Hello Larry, Thanks for explaining. I kind of suspected there was a reason based on how the code is written. Thanks, Scott -----Original Message----- From: Scott Duplichan [mailto:sc...@notabs.org] Sent: Friday, October 24, 2014 3:35 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] Edk2Setup.bat doesn't inherit %PATH% from calling shell Bruce Cran [mailto:bruce.c...@gmail.com] wrote: ]It appears that Edk2Setup.bat from the latest code is ignoring the ]%PATH% variable from the current shell and resetting it to the ]system-wide setting: ] ]C:\UDK2014>svn ]Type 'svn help' for usage. ] ]C:\UDK2014>Edk2Setup.bat --pull ] ]WARNING : NASM_PREFIX environment variable is not set ] Attempting to build modules that require NASM will fail. ]'svn' is not recognized as an internal or external command, ]operable program or batch file. ]ERROR : The command-line svn tool is not available and the Win32 ]binaries do not exist ] Python does not appear to be available either. This script ]cannot be used to ] build the Win32 binaries or to obtain them from this repository: ] https://svn.code.sf.net/p/edk2-toolbinaries/code/trunk/Win32 ] ]C:\UDK2014>svn ]'svn' is not recognized as an internal or external command, ]operable program or batch file. ] I bet if you first clear environment variable "ORIGINAL_PATH", the problem will disappear: C:\UDK2014>ORIGINAL_PATH= C:\UDK2014>Edk2Setup.bat --pull Probably Edk2Setup.bat was meant to clear ORIGINAL_PATH before exit, but it doesn't. setlocal/endlocal is simpler way of saving/restoring the path, along with all the EVs. Thanks, Scott ]-- ]Bruce ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel