Skip to content

Commit

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

Signed-off-by: franco-bocci <[email protected]>
Co-authored-by: franco-bocci <[email protected]>
  • Loading branch information
2 people authored and shuchu committed Jun 8, 2024
1 parent d12aafd commit b0c28b6
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 b0c28b6

Please sign in to comment.