Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix import usage in Feast UI
Signed-off-by: franco-bocci <franco.bocci@wolt.com>
  • Loading branch information
franco-bocci committed Jun 1, 2024
commit a6d96047bf279ff8d372edefff2830f807b03e09
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]
Comment thread
shuchu marked this conversation as resolved.
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