Skip to content

Commit

Permalink
fix: Feast UI importlib change (#4248)
Browse files Browse the repository at this point in the history
Fix import usage in Feast UI

Signed-off-by: franco-bocci <franco.bocci@wolt.com>
Co-authored-by: franco-bocci <franco.bocci@wolt.com>
  • Loading branch information
privatedumbo and franco-bocci committed Jun 1, 2024
1 parent e514f66 commit 5d486b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/ui_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5d486b8

Please sign in to comment.