Liming,
Thanks for acknowledging the issue. I am not a batch file expert so I don't
know of a nice way to fix it. Perhaps we should just require that a python
freezer is always available and convert this case into an error case to make
the user define the python freezer environment variable instead. If someone
else know a way to conditionally extend the PATH variable that would be even
better but I am not aware of a way to do so.
Thanks,
Eugene
From: Gao, Liming [mailto:liming....@intel.com]
Sent: Tuesday, January 22, 2013 10:43 PM
To: Cohen, Eugene; edk2-devel@lists.sourceforge.net;
edk2-buildtools-de...@lists.sourceforge.net
Subject: RE: toolsetupl.bat - Freezer Path Issues
Eugene:
Yes. It is an issue. Seemly, set
PATH=%PYTHONPATH%\build;%PYTHONPATH%\GenFds;%PYTHONPATH%\Trim;%PATH% doesn't
work in if conditional statement. If it is not in if conditional statement, it
can work. For example, command set PATH=%BASE_TOOLS_PATH%\Bin\Win32;%PATH% in
BaseTools/toolsetup.bat does work.
Have you any suggestion on how to fix it?
Thanks
Liming
From: Cohen, Eugene [mailto:eug...@hp.com]
Sent: Wednesday, January 23, 2013 1:17 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>;
edk2-buildtools-de...@lists.sourceforge.net<mailto:edk2-buildtools-de...@lists.sourceforge.net>
Subject: [edk2-buildtools] toolsetupl.bat - Freezer Path Issues
In BaseTools/toolsetup.bat there is a series of checks for a python freezer.
When I run from a VS command prompt (tested on 2005 and 2012) I found that when
we fall through to this case:
if not defined PYTHON_FREEZER_PATH (
echo.
echo !!! WARNING !!! Will not be able to compile Python programs to .exe
echo Will setup environment to run Python scripts directly.
echo.
set PYTHONPATH=%BASE_TOOLS_PATH%\Source\Python
set PATH=%PYTHONPATH%\build;%PYTHONPATH%\GenFds;%PYTHONPATH%\Trim;%PATH%
set PATHEXT=%PATHEXT%;.py
)
that the script will fail if anything in your PATH has parenthesis in it
including the standard VS2005 (or higher) path on 64-bit systems like
"C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE" with the error
message:
\Microsoft was unexpected at this time.
Has this script been tested on an x64 Windows host install without a freezer
installed?
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel