

@classmethod
def load_from_config(cls, config):
    if ('env' in config):
        cfg['env'] = parse_env_dict(config['env'])
    cfg = config.copy()
    w = cls(name=config.pop('name'), cmd=config.pop('cmd'), **config)
    w._cfg = cfg
    return w

dataset/ETHPy150Open circus-tent/circus/circus/watcher.py Watcher.load_from_config/VarMisuse@24/30 `config`->`cfg`