Skip to content

Commit b0c28b6

Browse files
privatedumbofranco-bocci
authored andcommitted
fix: Feast UI importlib change (feast-dev#4248)
Fix import usage in Feast UI Signed-off-by: franco-bocci <franco.bocci@wolt.com> Co-authored-by: franco-bocci <franco.bocci@wolt.com>
1 parent d12aafd commit b0c28b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/ui_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def shutdown_event():
5151

5252
async_refresh()
5353

54-
ui_dir_ref = importlib_resources.files(__name__) / "ui/build/"
54+
ui_dir_ref = importlib_resources.files(__spec__.parent) / "ui/build/" # type: ignore[name-defined]
5555
with importlib_resources.as_file(ui_dir_ref) as ui_dir:
5656
# Initialize with the projects-list.json file
5757
with ui_dir.joinpath("projects-list.json").open(mode="w") as f:

0 commit comments

Comments
 (0)