Skip to content

Better path support for configs#680

Merged
ty-porter merged 2 commits into
devfrom
relative-paths
Mar 11, 2026
Merged

Better path support for configs#680
ty-porter merged 2 commits into
devfrom
relative-paths

Conversation

@ty-porter

Copy link
Copy Markdown
Contributor

Running the project from outside the project directory currently breaks because it can't find the right config schemas

This updates the path lookups to be relative to project root

  • Fixes the bug with starting the project from an arbitrary location
  • maintains support for the --config option, and better handles relative paths. Previously only supported child paths of project root, now you can put configs anywhere. .json file extension is optional
  • Centralizes the directories in case we need to load files in the future. Updates a few tests to use them.
  • Fixes a secondary bug where typos in the weather location caused a crash

@ty-porter ty-porter merged commit 7454056 into dev Mar 11, 2026
11 of 12 checks passed
@WardBrian WardBrian deleted the relative-paths branch March 15, 2026 21:13
chipvp pushed a commit to chipvp/mlb-led-scoreboard that referenced this pull request Mar 31, 2026
…ative-paths

Better path support for configs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants