0

Here is my config directory structure,

config
|
--scenes
  |
  -- aaa.yaml
  -- bbb.yaml
  -- ccc.yaml
-- myconfig.yaml
aaa.yaml
--------
field_xxx: "someval"
field_yyy: "someval"
field_zzz: "someval"

bbb.yaml
--------
field_xxx: "someval"
field_yyy: "someval"
field_zzz: "someval"

myconfig.yaml has two fields src_scene and dst_scene. Currently I've hardcoded the fields and values for aaa.yaml and bbb.yaml into myconfig.yaml as follows,

myconfig.yaml
-------
src_scene:
   field_xxx: "someval"
   field_yyy: "someval"
   field_zzz: "someval"

dst_scene:
   field_xxx: "someval"
   field_yyy: "someval"
   field_zzz: "someval"

Ideally, I want to be able to assign these fields values from any of the config files in scenes group. Something like below,

src_scene: scenes/aaa.yaml
dst_scene: scenes/bbb.yaml

What is the right way of achieving this?

rs_
  • 433
  • 4
  • 12

1 Answers1

1

If you want to use the same config group multiple times, you can use package override.

Read the whole page, but look in particular at the last section.

Omry Yadan
  • 31,280
  • 18
  • 64
  • 87