Skip to content

Write files in etc directories as Python files #538

Description

Write the files in the etc directories as Python files:

Proposal:

  • Create a config.py module in each app's bin directory
  • Add the contents of the yml files to the config.py module as dictionaries, such that the imports are:
    • from config import recipe_paths
    • from config import request_defaults
    • from config import streams
  • When cmewpy is created, only the imports will need updating to e.g. from configure_for.config import recipe_paths (in the same way as all the other Python modules) 👍

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

configureAnything related to configuration

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions