Running the testsuite on Windows 7 x64

Adrian Buehlmann adrian at cadifra.com
Thu Jun 14 18:34:01 CDT 2012


On 2012-06-14 23:25, Adrian Buehlmann wrote:
> I *did* have to copy the hg script to hg.py and had to change the first
> line to
> 
>   #!C:\Windows\SysWOW64\python26.dll
> 
> Without that, the hg.exe (copied from the exemaker.exe from the timless
> clone) was not able to find the x86 (32-bit) python26.dll, which
> apparently happens to have been installed there by the 32-bit Python 2.6
> msi installer on my Windows 7 x64.

Alternatively, it turns out that it also works with

  #!C:\Windows\system32\python26.dll

there, which is the canonical path for the x64 dll on x64 Windows 7.

If a 32-bit process tries to access that path on a x64 Windows 7, the
access is automatically rerouted by Windows to C:\Windows\SysWOW64, so
that it ends correctly picking up the x86 version of the dll there.

http://www.samlogic.net/articles/32-64-bit-windows-folder-x86-syswow64.htm


More information about the Mercurial-devel mailing list