From fd4097015ac039c11ddaa668b584177c138107e5 Mon Sep 17 00:00:00 2001 From: Pedro Larroy Date: Wed, 28 Nov 2018 00:41:22 +0100 Subject: [PATCH] Use ~/.ccache as default ccache directory so is not cache is not erased on reboot --- ci/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build.py b/ci/build.py index acf277dd2c32..0069392d9a2a 100755 --- a/ci/build.py +++ b/ci/build.py @@ -200,7 +200,7 @@ def default_ccache_dir() -> str: ccache_dir = "/tmp/_mxnet_ccache" os.makedirs(ccache_dir, exist_ok=True) return ccache_dir - return os.path.join(tempfile.gettempdir(), "ci_ccache") + return os.path.join(os.path.expanduser("~"), ".ccache") def trim_container_id(cid):