Commits

Anonymous committed 3e1d750

fixed buggy cygwin special casing

  • Participants
  • Parent commits 830e2de
  • Branches default

Comments (0)

Files changed (1)

rope/base/project.py

     """
     # there is a bug in cygwin for os.path.abspath() for abs paths
     if sys.platform == 'cygwin':
-        if path[1:3] == ':\\':
+        if path[1:3] == ':\\' or path[1:3] == ':/':
             return path
-        elif path[1:3] == ':/':
-            path = "/cygdrive/" + path[0] + path[2:]
-        return os.path.abspath(os.path.expanduser(path))
-    return os.path.realpath(os.path.abspath(os.path.expanduser(path)))
+        else:
+            return os.path.expanduser(path)
+    rv = os.path.realpath(os.path.abspath(os.path.expanduser(path)))
+    return rv