()
return major_os_version
Retrieve the current Major OS version from machine.

  Returns:
    major_os_version: string, like '10.9' or '10.10',
      or False if OS version cannot be determined.
Retrieve the current Major OS version from machine.
Retrieve the current Major OS version from machine .
def GetMajorOSVersion():
  """Retrieve the current Major OS version from machine.

  Returns:
    major_os_version: string, like '10.9' or '10.10',
      or False if OS version cannot be determined.
  """
  try:
    os_version = GetOSVersion()
  except GmacpyutilException:
    return False
  version_list = os_version.split('.')
  major_os_version = '.'.join(version_list[:2])
  return major_os_version
def GetMajorOSVersion ( ) : try : os_version = GetOSVersion ( ) except GmacpyutilException : return False version_list = os_version . split ( '.' ) major_os_version = '.' . join ( version_list [ : 2 ] ) return major_os_version