From a6d96047bf279ff8d372edefff2830f807b03e09 Mon Sep 17 00:00:00 2001 From: franco-bocci Date: Sat, 1 Jun 2024 08:03:22 +0200 Subject: [PATCH] Fix import usage in Feast UI Signed-off-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 1e0d87a64e..35b51a8021 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: