# Path: ardublocklyserver/actions.py
# def arduino_ide_send_code(code_str):
# def create_sketch_from_string(sketch_code):
# def load_arduino_cli(sketch_path):
# def set_compiler_path(new_path):
# def get_compiler_path():
# def set_sketch_path(new_path):
# def get_sketch_path():
# def set_arduino_board(new_value):
# def get_arduino_board_selected():
# def get_arduino_boards():
# def set_serial_port(new_value):
# def get_serial_ports():
# def get_serial_port_selected():
# def set_load_ide_only(new_value):
# def get_load_ide_options():
# def get_load_ide_selected():


import os
import sys
from bottle import request, response
from bottle import static_file, run, default_app, redirect, abort
from six import iteritems
from ardublocklyserver import actions
        })
    except KeyError:
        response_dict.update({
            'success': False,
            'errors': [{
                'id': 65,
                'description': 'JSON received does not have \'new_value\' key.'
            }]
        })
    else:
        if not new_value:
            response_dict.update({
                'success': False,
                'errors': [{
                    'id': 66,
                    'description': 'Invalid value.'
                }]
            })
        else:
            options = None
            set_value = None
            if name == 'compiler':
                set_value = actions.set_compiler_path(new_value)
            elif name == 'sketch':
                set_value = actions.set_sketch_path(new_value)
            elif name == 'board':
                set_value = actions.set_arduino_board(new_value)
                options = [{'value': board, 'display_text': board}
                           for board in actions.get_arduino_boards()]
            elif name == 'serial':

# Path: ardublocklyserver/actions.py
# def arduino_ide_send_code(code_str):
# def create_sketch_from_string(sketch_code):
# def load_arduino_cli(sketch_path):
# def set_compiler_path(new_path):
# def get_compiler_path():
# def set_sketch_path(new_path):
# def get_sketch_path():
# def set_arduino_board(new_value):
# def get_arduino_board_selected():
# def get_arduino_boards():
# def set_serial_port(new_value):
# def get_serial_ports():
# def get_serial_port_selected():
# def set_load_ide_only(new_value):
# def get_load_ide_options():
# def get_load_ide_selected():


# Path: ardublocklyserver/server.py
import os
import sys
from bottle import request, response
from bottle import static_file, run, default_app, redirect, abort
from six import iteritems
from ardublocklyserver import actions

        })
    except KeyError:
        response_dict.update({
            'success': False,
            'errors': [{
                'id': 65,
                'description': 'JSON received does not have \'new_value\' key.'
            }]
        })
    else:
        if not new_value:
            response_dict.update({
                'success': False,
                'errors': [{
                    'id': 66,
                    'description': 'Invalid value.'
                }]
            })
        else:
            options = None
            set_value = None
            if name == 'compiler':
                set_value = actions.set_compiler_path(new_value)
            elif name == 'sketch':
                set_value = actions.set_sketch_path(new_value)
            elif name == 'board':
                set_value = actions.set_arduino_board(new_value)
                options = [{'value': board, 'display_text': board}
                           for board in actions.get_arduino_boards()]
            elif name == 'serial':

                set_value = actions.set_serial_port(new_value)