@classmethod<EOL><INDENT>def from_file(cls, path):<DEDENT>
if path == '<STR_LIT:->':<EOL><INDENT>return Configuration(yaml.safe_load(sys.stdin))<EOL><DEDENT>if not osp.exists(path) and not osp.isabs(path):<EOL><INDENT>path = osp.join(osp.dirname(osp.abspath(__file__)), path)<EOL><DEDENT>with open(path, '<STR_LIT:r>') as istr:<EOL><INDENT>return Configuration(yaml.safe_load(istr))<EOL><DEDENT>
Create a ``Configuration`` from a file

        :param path: path to YAML file
        :return: new configuration
        :rtype: ``Configuration``