import os class TodosManager: def __init__(self, todos_dir=os.path.join("compteur_electrique_data", "todos")): try: os.makedirs(todos_dir, exist_ok=True) except OSError as error: print(f"Error during creation of \"{todos_dir}\" directory") exit(1) self.todos_dir=todos_dir