Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide built-in routines from loading config `.py` files #195
Configurations in examples (e.g. transformer/config_model.py) is written in a separate file with config values as global variables. To be able to use these config files, we import them with
While this approach works, it certainly has downsides:
I'm proposing that we provide built-in mechanisms to deal with importing config modules. This could be a simple wrapper of the above code snippet that imports the the config module and converts it into a dictionary. It should also be able to work with file paths such as
This would solve the second issue but not the first one, which I think would be impossible to solve as long as we still use config modules. In the future, we might think of alternative ways to store configs while still being robust enough.