def _set_led(self, value):
    if (not self._used_led):
        self._init_led()
    if (not GPIO):
        raise PiCameraRuntimeError('GPIO library not found, or not accessible; please install RPi.GPIO and run the script as root')
    GPIO.output(self._led_pin, bool(value))
def _set_led(self, value):
    if (not self._used_led):
        self._init_led()
    if (not GPIO):
        raise PiCameraRuntimeError('GPIO library not found, or not accessible; please install RPi.GPIO and run the script as root')
    GPIO.output(self._led_pin, bool(value))