Commits

Anonymous committed 427ff2f

libutils: check parent for being empty, not path

Comments (0)

Files changed (1)

rope/base/libutils.py

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