quantlab.factor.kunquant_compile.cache_dir#

quantlab.factor.kunquant_compile.cache_dir()[source]#

Return the directory compiled libraries are cached in, or None for none.

Examples

>>> os.environ[CACHE_ENV] = "/tmp/kunquant"
>>> cache_dir()
PosixPath('/tmp/kunquant')
>>> os.environ[CACHE_ENV] = ""
>>> cache_dir() is None
True