From b0c28b61b9a55ee5d728c40ca18536f7a916e1b6 Mon Sep 17 00:00:00 2001 From: privatedumbo <47872044+privatedumbo@users.noreply.github.com> Date: Sat, 1 Jun 2024 19:11:18 +0200 Subject: [PATCH] fix: Feast UI importlib change (#4248) Fix import usage in Feast UI Signed-off-by: franco-bocci Co-authored-by: franco-bocci --- sdk/python/feast/ui_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/feast/ui_server.py b/sdk/python/feast/ui_server.py index 1e0d87a64e3..35b51a8021a 100644 --- a/sdk/python/feast/ui_server.py +++ b/sdk/python/feast/ui_server.py @@ -51,7 +51,7 @@ def shutdown_event(): async_refresh() - ui_dir_ref = importlib_resources.files(__name__) / "ui/build/" + ui_dir_ref = importlib_resources.files(__spec__.parent) / "ui/build/" # type: ignore[name-defined] with importlib_resources.as_file(ui_dir_ref) as ui_dir: # Initialize with the projects-list.json file with ui_dir.joinpath("projects-list.json").open(mode="w") as f: