lib.cuckoo.common.config.Config

Package lib :: Package cuckoo :: Package common :: Module config :: Class Config |
[hide private]
[frames] | no frames]

# Class Config

source code

Configuration file parser.

Instance Methods | [hide private]
__init__(self, file_name=`'``cuckoo``'`, cfg=None) | source code
get(self, section) Get option. | source code

Method Details | [hide private]

### __init__(self, file_name=`'``cuckoo``'`, cfg=None) (Constructor) | source code
Parameters: `file_name` - file name without extension. `cfg` - configuration file path.

### get(self, section) | source code
Get option. Parameters: `section` - section to fetch. Returns: option value. Raises: `CuckooOperationalError` - if section not found.