def load_yaml_config(version):
 checkout_path = version.project.checkout_path(version.slug)
 try:
  config = load_config(path=checkout_path, env_config={'output_base': '', 'type': 'sphinx', 'name': version.slug})[0]
 except InvalidConfig:
  raise
 except ConfigError:
  config = BuildConfig(env_config={}, raw_config={}, source_file='empty', source_position=0)
 return ConfigWrapper(version=version, yaml_config=config)

def load_yaml_config ( version ) : checkout_path = version . project . checkout_path ( version . slug ) try : config = load_config ( path = checkout_path , env_config = { 'output_base' : '' , 'type' : 'sphinx' , 'name' : version . slug } ) [ 0 ] except InvalidConfig : raise except ConfigError : config = BuildConfig ( env_config = { } , raw_config = { } , source_file = 'empty' , source_position = 0 ) return ConfigWrapper ( version = version , yaml_config = config )
load a configuration from readthedocs .