librelist archives

« back to archive

[Feature request] overwrite cachedir with env var

[Feature request] overwrite cachedir with env var

From:
Marek Rudnicki
Date:
2012-05-16 @ 20:04
Hello

I was wandering, if it would be possible to globally modify cachedir of
Memory objects using an environment variable.

The problem occurs, when I use a few smaller libraries in my software
and each of them saves cache files to a different directory.  I would
like to be able to globally modify the cachedir for example by saying:

export JOBLIB_CACHEDIR=/mount/ramdisk
python bla.py

Additionally would be cool to disable caching with:

export JOBLIB_CACHEDIR=None

Joblib is a great piece of software.  Thanks!

Best regards
Marek