ConfigFileFinder¶
- class ConfigFileFinder(program_name: str)[source]¶
Bases:
object
Encapsulate the logic for finding and reading config files.
Adapted from:
https://github.com/catalyst-team/catalyst (Apache-2.0 License)
Initialize object to find config files.
- Parameters
program_name (str) – Name of the current program (e.g., catalyst).
- Inherited-members
- Return type
None
Methods
Find and generate all local config files.
Find all local config files which actually exist.
Parse all local config files into one config object.
Parse the user config file into a config object.
- generate_possible_local_files()[source]¶
Find and generate all local config files.
- Yields
str – Path to config file.