You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say you have defined a staticconf.Schema class. staticconf should have an easy way to construct different instances of the schema from different config files. Currently it reads it from the global namespace which is a singleton.
This is useful for packages which can be instantiated multiple times and need to be configured differently within the same process.
The text was updated successfully, but these errors were encountered:
Reading from different config files isn't really possible, it just reads from a namespace. What we can do is allow config_path and namespace to be parameterized in the constructor, so you could have it load from a different path or namespace. This should effectively be the same thing.
Say you have defined a staticconf.Schema class. staticconf should have an easy way to construct different instances of the schema from different config files. Currently it reads it from the global namespace which is a singleton.
This is useful for packages which can be instantiated multiple times and need to be configured differently within the same process.
The text was updated successfully, but these errors were encountered: