def from_file(campaign_file, **kwargs):
realpath = osp.realpath(campaign_file)<EOL>if osp.isdir(realpath):<EOL><INDENT>campaign_file = osp.join(campaign_file, YAML_CAMPAIGN_FILE)<EOL><DEDENT>campaign = Configuration.from_file(campaign_file)<EOL>return default_campaign(campaign, **kwargs)<EOL>
Load campaign from YAML file

    :return: memory representation of the YAML file
    :rtype: dictionary