This addresses this in several ways: * Created mechanism to load 'commented' JSON (using '//' or '#' comments on a single line) * Embedded comments into the mycroft.conf, indicating use, legal values, and where they get overridden * Create ConfigurationManager.instance() static method to replace ConfigurationManager.get(). This produces more readable code like: ConfigurationManager.instance().get("value") instead of ConfigurationManager.get().get("value") * Made _ConfigurationListener 'private' * docstring'ed things |
||
---|---|---|
.. | ||
commented.json | ||
plain.json | ||
test_json_helper.py | ||
test_parse.py |