Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple schema instances from different config files #63

Open
sanjayprabhu opened this issue May 15, 2014 · 1 comment
Open

Allow multiple schema instances from different config files #63

sanjayprabhu opened this issue May 15, 2014 · 1 comment

Comments

@sanjayprabhu
Copy link

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.

@dnephin
Copy link
Owner

dnephin commented May 15, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants