@real_memoize
def is_smartos():
 if (not is_sunos()):
  return False
 else:
  return os.uname()[3].startswith('joyent_')

@ real_memoize def is_smartos ( ) : if ( not is_sunos ( ) ) : return False else : return os . uname ( ) [ 3 ] . startswith ( 'joyent_' )
simple function to return if host is smartos or not .