qsiprep.utils.resources module

Adapt importlib.resources result to a filesystem path string.

files() may return a Traversable (with .as_file()) or a pathlib.Path when the package is on the filesystem; this helper supports both.

qsiprep.utils.resources.as_path(resource)[source]

Return a filesystem path string from the result of files() / resource.