def os_constant(key):
 os_info = util.get_os_info()
 try:
  constants = CLI_DEFAULTS[os_info[0].lower()]
 except KeyError:
  constants = os_like_constants()
  if (not constants):
   constants = CLI_DEFAULTS['default']
 return constants[key]

def os_constant ( key ) : os_info = util . get_os_info ( ) try : constants = CLI_DEFAULTS [ os_info [ 0 ] . lower ( ) ] except KeyError : constants = os_like_constants ( ) if ( not constants ) : constants = CLI_DEFAULTS [ 'default' ] return constants [ key ]
get a constant value for operating system .