''

def run(self, edit):

    if stino.arduino_info[u'init_done']:
        file_path = self.view.file_name()
        dir_path = os.path.dirname(file_path)
        conf_file_name = u'config.stino-settings'
        conf_file_path = os.path.join(dir_path, conf_file_name)
        settings = stino.file.SettingsFile(conf_file_path)
        selected = stino.arduino_info[u'selected']
        pkg = selected.get(u'package', u'')
        ptfm = selected.get(u'platform', u'')
        ver = selected.get(u'version', u'')
        board = selected.get((u'board@%s' % ptfm), u'')
        programmer = selected.get(u'programmer', u'')
        settings.set(u'package', pkg)
        settings.set(u'platform', ptfm)
        settings.set(u'version', ver)
        settings.set((u'board@%s' % ptfm), board)
        settings.set(u'programmer', programmer)
        board_info = stino.arduino_info[u'boards'].get(board, {})
        options = board_info.get(u'options', [])
        for option in options:
            key = (u'option_%s@%s' % (option, board))
            value = selected.get(key)
            settings.set(key, value)
