parameters: (cls, name)
return_statement: return config
docstring: Create configuration given its name and resolve options.
docstring_summary: Create configuration given its name and resolve options.
docstring_tokens: Create configuration given its name and resolve options .
function: def from_name(cls, name):
          """Create configuration given its name and resolve options."""
          config = Config()
          config.load(name)
          options = os.environ.get('HWCONFIG_OPTS', '').replace(' ', '')
          if options != '':
              config.parse_options(options.split(','))
          config.resolve_expressions()
          config.partitions.sort()
          return config
function_tokens: def from_name ( cls , name ) : config = Config ( ) config . load ( name ) options = os . environ . get ( 'HWCONFIG_OPTS' , '' ) . replace ( ' ' , '' ) if options != '' : config . parse_options ( options . split ( ',' ) ) config . resolve_expressions ( ) config . partitions . sort ( ) return config