import csv import os.path import config.object_ids as obj_ids DEFAULT_EVENTS_CSV_PATH = "config/events.csv" RETURNVALUE_DICT = None def handle_event_packet( object_id: bytes, event_id: int, param_1: int, param_2: int ) -> str: if os.path.exists(DEFAULT_EVENTS_CSV_PATH) and RETURNVALUE_DICT is None: with open(DEFAULT_EVENTS_CSV_PATH) as csvfile: csv_reader = csv.reader(csvfile, delimiter=";") for row in csv_reader: print(row) return ""