Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

nautilus: fix symlink detection code

Changeset 108023a3ba57

Parent e792dc281e56

by Steve Borho

Changes to one file · Browse files at 108023a3ba57 Showing diff from parent e792dc281e56 Diff from another changeset...

 
53
54
55
56
57
58
59
60
61
 
 
 
 
 
 
62
63
64
 
53
54
55
 
 
 
 
 
 
56
57
58
59
60
61
62
63
64
@@ -53,12 +53,12 @@
  pfile = __file__   if pfile.endswith('.pyc'):   pfile = pfile[:-1] - path = os.path.dirname(os.path.realpath(pfile)) - thgpath = os.path.normpath(os.path.join(path, '..')) - testpath = os.path.join(thgpath, 'tortoise') - if os.path.isdir(testpath): - if thgpath not in sys.path: - sys.path.insert(0, thgpath) + path = os.path.dirname(os.path.dirname(os.path.realpath(pfile))) + thgpath = os.path.normpath(path) + testpath = os.path.join(thgpath, 'thgutil') + if os.path.isdir(testpath) and thgpath not in sys.path: + sys.path.insert(0, thgpath) +   # else assume thgutil is already in PYTHONPATH   try:   from thgutil import paths, debugthg, menuthg