This proposal suggests having a configuration file for turning on/off features in Modmesh.
Currently, we may use Python script to set up some configs during runtime, such as setting modmesh.view.app.pycon.python_redirect = False, but it's inconvenient to do it again and again when we are doing some testing.
The steps should be:
- have a new file
config.{format} in json or ymal format.
- have an in-memory config object
class Config
- when Modmesh starts, it loads the config file to
Config and Modmesh initializes everything according to Config
- when Python scripts modify config later during runtime, just change
Config
There should be no overhead for Modmesh with this proposed change. This change may also benefit the later web server feature since we can expect some configurations may be required.
This proposal suggests having a configuration file for turning on/off features in Modmesh.
Currently, we may use Python script to set up some configs during runtime, such as setting
modmesh.view.app.pycon.python_redirect = False, but it's inconvenient to do it again and again when we are doing some testing.The steps should be:
config.{format}in json or ymal format.class ConfigConfigand Modmesh initializes everything according toConfigConfigThere should be no overhead for Modmesh with this proposed change. This change may also benefit the later web server feature since we can expect some configurations may be required.