Skip to content

Understanding beets configuration split into separate files (confuse views) #4884

Answered by sampsyo
JOJ0 asked this question in Q&A
Discussion options

You must be logged in to vote

It's honestly pretty subtle, but the logic works like this:

  • We first construct a view, which consists of the "path" to the information we want. In this case, the view is constructed with config["plugins"], which says "look up the plugins key and give me the corresponding value."
  • Second, we go through all the config sources in order and ask them each whether they can give us a value for the view. So we go first to the overlay configuration and say, "look up the plugins key and give me that value." If it has a plugins field, that's what we see. If not, i.e., if that configuration didn't have a plugins key in it, we continue on to the next source and see if it has one. We iterate on down th…

Replies: 2 comments 3 replies

Comment options

JOJ0
Aug 27, 2023
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@JOJ0
Comment options

JOJ0 Aug 29, 2023
Maintainer Author

@sampsyo
Comment options

@JOJ0
Comment options

JOJ0 Sep 7, 2023
Maintainer Author

Answer selected by JOJ0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants