def keys_changed(*unused): program, name = _save_name path = choices.save(program, name) if path: try: g.accel_map_save(path) except AttributeError: print "Error saving keybindings to", path
def keys_changed(*unused): site, program, name = _save_name if site: d = basedir.save_config_path(site, program) path = os.path.join(d, name) else: path = choices.save(program, name) if path: try: g.accel_map_save(path) except AttributeError: print "Error saving keybindings to", path