Commits

Anonymous committed 03065cc

libutils: path tokens should be reversed

  • Participants
  • Parent commits 0c1a1f2

Comments (0)

Files changed (1)

File rope/base/libutils.py

     rel = []
     while True:
         if os.path.samefile(root, path):
-            return '/'.join(rel)
+            return '/'.join(reversed(rel))
         parent = os.path.dirname(path)
         if not path or parent == path:
             break