Closed Mengman closed 5 years ago
I suggest that in your code that uses yacs, you can load the relevant env variables and then use CfgNode.merge_from_list
to make them override the default values. I think this does not need to be directly supported via a syntax extension. Example usage: https://github.com/rbgirshick/yacs/blob/master/yacs/tests.py#L314-L326.
I hope yacs can support use environment variable in yaml file.
for example
GPU
is the environment variable, if environment variable does not exist the value after colon1
will be used.