Commits

Anonymous committed 2e5d174

project: fix _realpath() on cygwin

Reported by: Darren Syzling <dsyzling@gmail.com>

  • Participants
  • Parent commits 8eb4e9c

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.startswith('/') or path[1:2] == ':':
+        if path[1:3] == ':\\':
             return path
         return os.path.abspath(os.path.expanduser(path))
     return os.path.realpath(os.path.abspath(os.path.expanduser(path)))