Issue2074

Title hg.bat doesn't work when Python installed in Program Files
Priority bug Status resolved
Superseder hg.bat does not work if there are spaces in the install path
View: 2421
Nosy List Regent, hgbot, jmb, kiilerix, mg
Assigned To Topics

Created on 2010-03-06.18:24:39 by Regent, last changed 2010-11-02.21:16:27 by mpm.

Messages
msg13951 (view) Author: mg Date: 2010-10-11.02:10:24
Isssue2421 is a duplicate of this one.
msg13905 (view) Author: hgbot Date: 2010-10-09.17:00:06
Fixed by http://hg.intevation.org/mercurial/crew/rev/5096faaa280e
Benjamin Pollack <benjamin@bitquabit.com>
windows: handle spaces in path to Python (issue2074)
msg11943 (view) Author: Regent Date: 2010-03-06.18:24:39
I've downloaded the latest Mercurial source and build and installed it on my 
Windows machine.

Python's Script folder is in my Path variable, but Mercurial's install 
generated hg.bat file calling hg:

%~dp0..\python "%~dp0hg" %*

This causes an error when Python is installed in a path containing spaces 
(e.g. "C:\Program Files\Python") -- it will try to call "C:\Program" with 
arguments "Files\Python\python ...")

I've fixed it in my install by quoting python:
"%~dp0..\python" "%~dp0hg" %*
History
Date User Action Args
2010-11-02 21:16:27mpmsetstatus: testing -> resolved
nosy: kiilerix, mg, Regent, hgbot, jmb
2010-10-11 02:10:24mgsetnosy: + jmb, mg, kiilerix
superseder: + hg.bat does not work if there are spaces in the install path
messages: + msg13951
2010-10-09 17:00:06hgbotsetstatus: unread -> testing
nosy: + hgbot
messages: + msg13905
2010-03-06 18:24:39Regentcreate