Commits

Anonymous committed 830e2de

fix naked drive colon paths on win32 cygwin python

Comments (0)

Files changed (1)

rope/base/project.py

     if sys.platform == 'cygwin':
         if 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)))