Configuration Module#
Handles configuration management and settings via config.yaml (modern) or ~/.panobbgo/config.ini (legacy).
- class panobbgo.config.Config(parse_args: bool = False, testing_mode: bool = False)[source]#
Bases:
objectConfiguration of one strategy run.
Every
StrategyBaseowns its ownConfiginstance, sostrategy.config.max_eval = 500affects that strategy only. (Up to 2026-09 this class was a process-wide singleton, which made per-strategy overrides leak into every strategy created afterwards in the same process — including the other specs of a benchmark run.)Values are read, in decreasing precedence, from the command line (only with
parse_args=True),./config.yaml,~/.panobbgo/config.iniand the built-in defaults.- Parameters:
parse_args (boolean) – parse
sys.argv(scripts only)testing_mode (boolean) – if True, signals that it is run by the unittests