Commits

Ali Gholami Rudi  committed 11fa79c

libutils: convert back-slashes to slash in relative() on windows

  • Participants
  • Parent commits 434a95c

Comments (0)

Files changed (1)

File rope/base/libutils.py

     if os.name == 'nt':
         root = root.rstrip('\\')
         if path.startswith(root):
-            return path[len(root):]
+            return path[len(root):].replace('\\', '/').lstrip('/')
         return
     rel = []
     while True: