Source code for gryphon.execution.lib.config
import ConfigParser
from gryphon.lib.logger import get_logger
logger = get_logger(__name__)
[docs]def get_config_var(filepath, section, key):
print filepath
config = ConfigParser.RawConfigParser()
config.read(filepath)
section_dict = dict(config.items('live'))
return section_dict[key]