1. offbyone
  2. rope

Commits

Ali Gholami Rudi  committed 11fa79c

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

  • Participants
  • Parent commits 434a95c
  • Branches trunk

Comments (0)

Files changed (1)

File rope/base/libutils.py

View file
     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: