def _ensure_storm_path_in_configs(configs):

    if configs.storm_cmd_path is not None:
        return configs

    storm_cmd_path = search_storm_cmd_path()
    if storm_cmd_path is None:
        raise ConfigurationError(
            "Unable to locate Storm executable. Please either install "
            "Storm or specify its path in your configuration file")

    return update_configuration(configs, {"storm_cmd_path": storm_cmd_path})
Ensure that the storm executable path is in the configuration.
dataset/ETHPy150Open Yelp/pyleus/pyleus/cli/commands/subcommand.py/_ensure_storm_path_in_configs