Join the Kedro community

Updated 4 weeks ago

Project context

In this example: https://docs.kedro.org/en/stable/extend_kedro/plugins.html#project-context

I see that _get_project_metadata does not get called. Is it relevant to this example?

from pathlib import Path

from kedro.framework.startup import _get_project_metadata
from kedro.framework.session import KedroSession


project_path = Path.cwd()
session = KedroSession.create(project_path=project_path)
context = session.load_context()

Am I assuming that project_path would get defined elsewhere?

D
1 comment

Hi Galen, I believe project_path doesn’t need to be defined elsewhere, as it simply points to the current working directory. _get_project_metadata() isn’t directly relevant here but might have been included to illustrate how project metadata can be retrieved if needed.

Add a reply
Sign up and join the conversation on Slack