Commits

Anonymous committed 6409f7d

hgtk: support symlink to hgtk

Comments (0)

Files changed (1)

 
         try:
             # assuming TortoiseHg source layout, with hgtk in contrib
-            path = os.path.dirname(os.path.abspath(__file__))
+            path = os.path.dirname(os.path.realpath(__file__))
             norm = os.path.normpath(os.path.join(path, '..'))
             if norm not in sys.path:
                 sys.path.append(norm)