Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def try_configs(files):
    for config_file in files:
        config_file = os.path.expanduser(config_file)
        config_dir = os.path.abspath(os.path.dirname(config_file))
        config_base = os.path.basename(config_file)
        if os.path.isdir(config_dir):
            with _with_chdir(config_dir):
                if os.path.exists(config_base):
                    return _load_yaml(config_base)
    return None

src/s/l/slimta-HEAD/slimta/app/state.py   slimta(Download)
from .validation import ConfigValidation, ConfigValidationError
from .config import try_configs
from .logging import setup_logging
            files = [self.args.config]
        self.cfg = try_configs(files)
        err = None
        if self.cfg: