Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

7.2.30. nilearn.datasets.get_data_dirs

nilearn.datasets.get_data_dirs(data_dir=None)

Returns the directories in which nilearn looks for data.

This is typically useful for the end-user to check where the data is downloaded and stored.

Parameters:

data_dir: string, optional

Path of the data directory. Used to force data storage in a specified location. Default: None

Returns:

paths: list of strings

Paths of the dataset directories.

Notes

This function retrieves the datasets directories using the following priority : 1. defaults system paths 2. the keyword argument data_dir 3. the global environment variable NILEARN_SHARED_DATA 4. the user environment variable NILEARN_DATA 5. nilearn_data in the user home folder