nyxxxie / serenity

Universal guided editor and reverse engineering tool for binary data.
GNU General Public License v3.0
11 stars 3 forks source link

Create config system #24

Open nyxxxie opened 7 years ago

nyxxxie commented 7 years ago

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 commented 7 years ago

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)!