def get_app_commands(app):
	try:
		app_command_module = importlib.import_module(app + '.commands')
	except __HOLE__:
		return []

	ret = {}
	for command in getattr(app_command_module, 'commands', []):
		ret[command.name] = command
	return ret
dataset/ETHPy150Open frappe/frappe/frappe/utils/bench_helper.py/get_app_commands