def _check_cygwin_installed(cyg_arch='x86_64'):
 path_to_cygcheck = os.sep.join(['C:', _get_cyg_dir(cyg_arch), 'bin', 'cygcheck.exe'])
 LOG.debug('Path to cygcheck.exe: {0}'.format(path_to_cygcheck))
 if (not os.path.exists(path_to_cygcheck)):
  LOG.debug('Could not find cygcheck.exe')
  return False
 return True

def _check_cygwin_installed ( cyg_arch = 'x86_64' ) : path_to_cygcheck = os . sep . join ( [ 'C:' , _get_cyg_dir ( cyg_arch ) , 'bin' , 'cygcheck.exe' ] ) LOG . debug ( 'Path to cygcheck.exe: {0}' . format ( path_to_cygcheck ) ) if ( not os . path . exists ( path_to_cygcheck ) ) : LOG . debug ( 'Could not find cygcheck.exe' ) return False return True
return true or false if cygwin is installed .