def __init__(self, config):
        self.config = config
        self.filename = config.get('nagios.command_file')
        try:
            self.pipe = open(self.filename, 'a')
        except (IOError, __HOLE__), e:
            self.pipe = None
dataset/ETHPy150Open tehmaze/nagios-cli/nagios_cli/nagios.py/Command.__init__