This is a variant of the patch I posted 17-oct-2008.
Instead of overwriting launch path, it simply moves TORTOISEHG_PATH up front
of the list. This allows a developer to control which TortoiseHg source code
to use by setting the environment variable.
Otherwise, a version installed with setuptools
(site-packages/easy-install.pth) will always take precedence.
(I'm experimenting with a new setup.py based on setuptools and easy_install)
Regards,
Peer
2008/12/6 <[EMAIL PROTECTED]>
> # HG changeset patch
> # User Peer Sommerlund <[EMAIL PROTECTED]>
> # Date 1228532220 -3600
> # Node ID e020ef97bb8ea3dc8ce50f23f8ec0622d7eaa575
> # Parent 10ad9bbe02a7a7cddda54646fe717738757d2b27
> hgtk: Make TORTOISEHG_PATH environment take precedence over
> easy-install.pth
>
> The environment variable should have highest priority, otherwise installed
> modules will shadow the module you ask for.
>
> diff --git a/contrib/hgtk b/contrib/hgtk
> --- a/contrib/hgtk
> +++ b/contrib/hgtk
> @@ -46,7 +46,7 @@
> path = os.environ.get('TORTOISEHG_PATH') or tortoisehg_dir
> norm = os.path.normpath(os.path.expanduser(path))
> if norm not in sys.path:
> - sys.path.append(norm)
> + sys.path.insert(0,norm)
>
> try:
> # assuming TortoiseHg source layout, with hgtk in contrib
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop