ConfigLoader — IPython v0.10 documentation

### Navigation

- index
- modules |
- next |
- previous |
- IPython v0.10 documentation »
- The IPython API »

# ConfigLoader

## Module: `ConfigLoader`

Inheritance diagram for `IPython.ConfigLoader`:

Configuration loader

## Classes

### `ConfigLoader`

class `IPython.ConfigLoader.` `ConfigLoader`(conflict=None, field_sep=None, reclimit=15)

  Configuration file loader capable of handling recursive inclusions and with parametrized conflict resolution for multiply found keys.

  `__init__`(conflict=None, field_sep=None, reclimit=15)

    The reclimit parameter controls the number of recursive configuration file inclusions. This way we can stop early on (before python’s own recursion limit is hit) if there is a circular inclusion.

    - conflict: dictionary for conflict resolutions (see Struct.merge())
  `load`(fname, convert=None, recurse_key='', incpath='.', **kw)

    Load a configuration file, return the resulting Struct.

    Call: load_config(fname,convert=None,conflict=None,recurse_key=’‘)

    > - fname: file to load from.
    > - convert: dictionary of type conversions (see read_dict())
    > - recurse_key: keyword in dictionary to trigger recursive file

    > inclusions.

  `reset`(reclimit=15)

### `ConfigLoaderError`

class `IPython.ConfigLoader.` `ConfigLoaderError`(args=None)

  Bases: `exceptions.Exception`

  Exception for ConfigLoader class.

  `__init__`(args=None)

### Navigation

- index
- modules |
- next |
- previous |
- IPython v0.10 documentation »
- The IPython API »