[PATCH] util.hgexecutable: if $HG isnt set and 'hg' isnt in local path, use sys.argv[0]
Benoit Boissinot
benoit.boissinot at ens-lyon.org
Tue Sep 29 17:45:04 CDT 2009
On Tue, Sep 29, 2009 at 06:32:49PM +0200, Nicolas Dumazet wrote:
> 2009/9/29 Martin Geisler <mg at lazybytes.net>:
> > Why don't we just always use sys.argv[0]?
>
> _I_ don't know. Maybe in case mercurial.util is used from another,
> third-party tool?
I don't know the reason for that, but that particular function was added
for py2exe / frozen scripts, maybe it helps people figuring out why it
isn't using argv.
cheers,
Benoit
--
:wq
More information about the Mercurial-devel
mailing list