def __init__(self): create_or_check_path("logs/") fileConfig('config/logger.conf') self.database = Database() self.parser = Parser() self.event_processor = EventProcessor() self.downloader = Downloader() self.new_events_file = None self.new_data = None self.new_event = None
def __init__(self): self.downloaded_data_dir = "downloaded_data/" self.new_data_dir = "new_data/" self.config_file = join("config/", "downloader.conf") create_or_check_path(self.downloaded_data_dir) create_or_check_path(self.new_data_dir) create_or_check_path(self.config_file) self.config = self.configuration() self.logger = getLogger('LOGGER')
def __init__(self): self.data_dir = "pairs/" self.data_file = join(self.data_dir, "pairs.txt") create_or_check_path(self.data_dir) create_or_check_path(self.data_file)