Skip to content

How to I get the full key of a config? #1062

Answered by omry
Drunk-Creator asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure I understand your question.
You would print it as print('fruits.apple.price') :).
I am sure it's not what you mean. Feel free to shed some more light here.

Also, you might be interested in OmegaConf.select() that can select values using a dot string.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Drunk-Creator
Comment options

Answer selected by Drunk-Creator
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