:right-sidebar: True IOModuleScope =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.30 .. class:: IOModuleScope(*args, **kwargs) :no-contents-entry: 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 :func:`~gi.repository.Gio.io_modules_load_all_in_directory_with_scope` or :func:`~gi.repository.Gio.io_modules_scan_all_in_directory_with_scope`. Methods ------- .. rst-class:: interim-class .. class:: IOModuleScope :no-index: .. method:: block(basename: str) -> None Block modules with the given ``basename`` from being loaded when this scope is used with :func:`~gi.repository.Gio.io_modules_scan_all_in_directory_with_scope` or :func:`~gi.repository.Gio.io_modules_load_all_in_directory_with_scope`. .. versionadded:: 2.30 :param basename: the basename to block .. method:: free() -> None Free a module scope. .. versionadded:: 2.30