IOModuleScope
Added in version 2.30.
- class IOModuleScope(*args, **kwargs)
Represents a scope for loading IO modules. A scope can be used for blocking duplicate modules, or blocking a module you don’t want to load.
The scope can be used with io_modules_load_all_in_directory_with_scope()
or io_modules_scan_all_in_directory_with_scope()
.
Methods
- class IOModuleScope
- block(basename: str) None
Block modules with the given
basename
from being loaded when this scope is used withio_modules_scan_all_in_directory_with_scope()
orio_modules_load_all_in_directory_with_scope()
.Added in version 2.30.
- Parameters:
basename – the basename to block