quantlab.config.get_data_root#
- quantlab.config.get_data_root()[source]#
Return the storage root every config factory derives its paths from.
Resolution order: the override set by
set_data_root, then theQUANTLAB_DATA_DIRenvironment variable, then thedata/directory beside the repository root in a source checkout (the package’s parent holdspyproject.toml), else~/.quantlab/data.Examples
>>> set_data_root("/mnt/quant") PosixPath('/mnt/quant') >>> get_data_root() PosixPath('/mnt/quant')