(Question) How should hooks access a projects context

I have some hooks that need access to things like project_path from the context. What is the best way to access context from inside of a hook? I am not sure if my current method is going to work with kedro 0.17.x.

I guess it’s with get_current_session() and then you can access the context:

https://kedro.readthedocs.io/en/latest/04_kedro_project_setup/03_session.html?highlight=get_current_session#create-a-session

1 Like