def __init__(self, configFile, simulation): if os.path.exists(configFile): self.config = CustomConfigObj(configFile) else: print "Configuration file not found: %s" % configFile sys.exit(1) self.simulation = simulation self.battery_monitor = BatteryVoltageMonitor() self.alarmStatus = AlarmRegister() self.driver = None self.inst_mgr = None self.logger = None