Skip to content

Commit 5d486b8

Browse files
fix: Feast UI importlib change (#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 e514f66 commit 5d486b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/ui_server.py

Lines changed: 1 addition & 1 deletion
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)