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

Create config system #24

Open
nyxxxie opened this issue Feb 6, 2017 · 1 comment
Open

Create config system #24

nyxxxie opened this issue Feb 6, 2017 · 1 comment

Comments

@nyxxxie
Copy link
Owner

nyxxxie commented Feb 6, 2017

It would be cool to have a config library that allows us to get user defined values to use in program features. Implement a class in core that provides an API to do this, and saves/loads values from a yaml settings file. Default config file values should be stored in code somehow, preferably defined inside of modules that make use of them (for example, register config variables inside of hexeditor.py if any of them relate directly to it). Saved yaml files should override these default values.

@nyxxxie
Copy link
Owner Author

nyxxxie commented May 20, 2017

Check out https://github.com/google/python-gflags for an idea of what it would look like (only replace the whole FLAG thing with CONFIG or whatever)!

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

1 participant