code: def from_file(cls, path):
          
          if path == '-':
              return Configuration(yaml.safe_load(sys.stdin))
          if not osp.exists(path) and not osp.isabs(path):
              path = osp.join(osp.dirname(osp.abspath(__file__)), path)
          with open(path, 'r') as istr:
              return Configuration(yaml.safe_load(istr))
docs: Create a ``Configuration`` from a file
  
          :param path: path to YAML file
          :return: new configuration
          :rtype: ``Configuration``