def set_int(_bytearray, byte_index, _int):
    # make sure were dealing with an int
    _int = int(_int)
    # int needs two be two bytes.
    byte0 = _int >> 8
    byte1 = _int - (byte0 << 8)
    _bytearray[byte_index] = byte0
    _bytearray[byte_index + 1] = byte1
Get an environment variable coerced to a boolean value.
dataset/ETHPy150Open gijzelaerr/python-snap7/snap7/util.py/set_int--crossover with--dataset/ETHPy150Open lyft/confidant/confidant/settings.py/bool_env