Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc2, 0.4rc3, and 0.4rc4

hgtk: find hggtk via relative path

Changeset 4c5a64b79885

Parent f348320e097e

by TK Soh

Changes to one file · Browse files at 4c5a64b79885 Showing diff from parent f348320e097e Diff from another changeset...

Change 1 of 1 Show Entire File contrib/​hgtk Stacked
 
47
48
49
 
 
 
 
 
 
 
 
 
50
51
52
 
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@@ -47,6 +47,15 @@
  if norm not in sys.path:   sys.path.append(norm)   + try: + # assuming TortoiseHg source layout, with hgtk in contrib + path = os.path.dirname(os.path.abspath(__file__)) + norm = os.path.normpath(os.path.join(path, '..')) + if norm not in sys.path: + sys.path.append(norm) + except NameError: # __file__ is not always available + pass +   try:   from hggtk import hglib   except ImportError: