How to create the standalone windows installer

Volker Kleinfeld volker.kleinfeld at
Thu Sep 29 14:15:31 CDT 2005

> Zbynek Winkler wrote:
> > When I add --ssh tortoiseplink to the command line everything works fine.
> > 
> > The reason seems to be the hardcoded path in, line 374 :(. 
> > Replacing the line with
> >    rcpath = (os.path.dirname(sys.argv[0]) + r'\mercurial.ini',
> > fixes the problem with for me.
> Win32 mercurial can install any place other than C:\Mercurial, so yes, 
> this should definitely not be hardcoded.

This would store the ini file in the same directory as mercurial
is installed, perhaps not a bad idea.

On top I have a problem with using expanduser('~') on win98 machines. I sent a patch in a second using the ShGetFolderPath method instead. Perhaps a combination of both appoaches would be best.


More information about the Mercurial mailing list