[issue2512] hg.bat not working in VirtualEnv
bugs at mercurial.selenic.com
Sun Nov 21 10:01:06 CST 2010
New submission from lllama <f.ingram.lists at gmail.com>:
When a virtual environment is created the python executable will be placed in
the Scripts folder, rather than in the 'root' directory. The hg.bat file will
attempt to call the hg python script with the following command:
"%~dp0..\python" "%~dp0hg" %*
which will fail. Possible solutions could include:
- test whether python.exe is in the current directory.
- test whether it's in the 'root' (..) directory and, if not, assume it's in
the PATH (which it will be in a virtual env).
Not sure what the best approach would be though.
title: hg.bat not working in VirtualEnv
Mercurial issue tracker <bugs at mercurial.selenic.com>
More information about the Mercurial-devel