def _ConvertToCygpath(path):
 if (sys.platform == 'cygwin'):
  p = subprocess.Popen(['cygpath', path], stdout=subprocess.PIPE)
  path = p.communicate()[0].strip()
 return path

def _ConvertToCygpath ( path ) : if ( sys . platform == 'cygwin' ) : p = subprocess . Popen ( [ 'cygpath' , path ] , stdout = subprocess . PIPE ) path = p . communicate ( ) [ 0 ] . strip ( ) return path
convert to cygwin path if we are using cygwin .