Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

hgtk: insert tortoisehg path at front of sys.path

This fixes interoperability when you have a version of tortoisehg
installed system wide, but want to develop on a different version.

Changeset a4fee40664a8

Parent 3e494f169b09

by Steve Borho

Changes to one file · Browse files at a4fee40664a8 Showing diff from parent 3e494f169b09 Diff from another changeset...

Change 1 of 1 Show Entire File contrib/​hgtk Stacked
 
119
120
121
122
 
123
124
125
 
119
120
121
 
122
123
124
125
@@ -119,7 +119,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