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; 
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

Reply via email to