Anonymous committed b5beb37

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

Comments (0)

Files changed (1)


     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)'\n')
+        return path.replace('\\', '/')
     return os.path.realpath(os.path.abspath(os.path.expanduser(path)))