import os

import ConfigParser
import os

class Config(object):
    config = None

    def __init__(self):
        self.read_config()

    def read_config(self):
        """Return config object from config file"""
        self.cfg = ConfigParser.ConfigParser()
        self.cfg.read(os.path.join(os.getenv('CONFROOT'), 'salvavida.cfg'))

import os

import ConfigParser
import os

class Config(object):
    config = None

    def __init__(self):
        self.read_config()

    def read_config(self):
        """Return config object from config file"""
        self.cfg = ConfigParser.ConfigParser()
        self.cfg.read(os.path.join(os.getenv('CONFROOT'), 'salvavida.cfg'))

Return config object from config file