[docs]defhas(self,module_name:str,version:str)->bool:"""Return whether the module version is installed. Relies on a directory check for EPICS base, and otherwise checks if the meta file exists. This is done so because EPICS base did not create and install meta files for the environments we support. """ifmodule_name=="base":assertversion==self.base_versionpath=self.base_directoryelifmodule_name=="require":assertversion==self.require_versionpath=self.require_directory/f"{module_name}_meta.yaml"else:path=(self.modules_directory/module_name/version/f"{module_name}_meta.yaml")exists=path.exists()ifexists:logger.debug(f"{module_name!r}, {version!r} detected at {path!s}")returnexists