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 the QUANTLAB_DATA_DIR environment variable, then the data/ directory beside the repository root in a source checkout (the package’s parent holds pyproject.toml), else ~/.quantlab/data.

Examples

>>> set_data_root("/mnt/quant")
PosixPath('/mnt/quant')
>>> get_data_root()
PosixPath('/mnt/quant')