google / google/gin-config

Binding to same value from multiple files

Open
#163 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
122
Avg merge
5d 10h
Merged PRs (30d)
2

Description

I wonder if it is/would be possible to bind multiple values to the same parameter via different config files. For instance:
### File main.py
```
def myfunc(mylist):
print(mylist)
```
### Gin-config file ```config1.gin```:
```
myfunc.mylist += 'apples'
```

### Gin-config file ```config2.gin```:
```
myfunc.mylist += 'oranges'
````
### Running the app
Then, when running the app, it should print:
```
['apples', 'oranges']
```

with the binding order based on the order of including 'config1.gin' and 'config2.gin'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.