def __init__(self, config, server): if server: self.default_config_file = '/etc/wesentropy/server.conf' else: self.default_config_file = '/etc/wesentropy/client.conf' WesConfig.__init__(self, config, self.default_config_file) self.working_dir = self.config.get('DEFAULT', 'working_dir') self.socket_path = self.config.get('daemon', 'socket_path') self.seed_source = ast.literal_eval( self.config.get('seed_source', self.config.options('seed_source')[0])) self.stream_source = ast.literal_eval( self.config.get('stream_source', self.config.options('stream_source')[0])) self.drbg_spec = self.config.get('drbg', 'drbg_spec') self.reseed_rate = self.config.get('drbg', 'reseed_rate')
def __init__(self, config): WesConfig.__init__(self, config, WesClientConfig.default_config_file) self.socket_path = self.config.get("daemon", "socket_path")