Skip to content
Open
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
5 changes: 5 additions & 0 deletions packages/railtracks/src/railtracks/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@ def main():

create_railtracks_dir()

ui_index = Path(f"{cli_directory}/ui/index.html")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait until #1110 is merged, then change this line to

ui_index = resolve_railtracks_home() / "ui" / "index.html"

As now we rely on absolute path generate by the paths/resolve_railtracks_home function.

if not ui_index.exists():
print_status("UI not found — downloading...")
download_and_extract_ui()

update_thread = threading.Thread(target=check_for_ui_update, daemon=True)
update_thread.start()

Expand Down
Loading