Skip to content

Configuration file propsoal #162

@tigercosmos

Description

@tigercosmos

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:

  1. have a new file config.{format} in json or ymal format.
  2. have an in-memory config object class Config
  3. when Modmesh starts, it loads the config file to Config and Modmesh initializes everything according to Config
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions