def setup(self, *a, allow_files=False, **kw): if __base_dir__: shutil.rmtree(str(temp_path()), ignore_errors=True) if self._warnings: warnings.resetwarnings() Config.allow_files = allow_files Config.setup(*self._configs, files=allow_files) Config.override('general', debug=True)
def _load_entry_point_config(module, config_alias=None, parse_cli=True, positional=()): if config_alias is None: config_alias = _valid_parent_module(module) Config.setup(config_alias) if parse_cli: Config.parse_cli(positional=positional) conf = Config['general'] if conf['stdout']: level = (logging.DEBUG if conf['debug'] else logging.VERBOSE if conf['verbose'] else None) tryp_stdout_logging(level) if conf['debug']: global dodebug dodebug = True