# 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