Commits

Anonymous committed b5beb37

get rid of calls to cygpath because it's monstrously slow

Comments (0)

Files changed (1)

rope/base/project.py

     if sys.platform == 'cygwin':
         # cygpath -m returns windows drive letters but with forward slashes.
         # Python likes these paths, unlike some other cygwin programs
-        from subprocess import Popen, PIPE
-        return Popen("cygpath -m " + path, shell=True, stdout=PIPE).stdout.read().rstrip('\n')
+        return path.replace('\\', '/')
     return os.path.realpath(os.path.abspath(os.path.expanduser(path)))