From a09dfc57a2b965a4f81096f2a3e7b3934234af0c Mon Sep 17 00:00:00 2001 From: vmalefioudakis <benmalef@hotmail.com> Date: Sun, 10 Nov 2024 12:22:35 +0200 Subject: [PATCH] change the default logfile from tmp->home dir --- GANDLF/utils/gandlf_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GANDLF/utils/gandlf_logging.py b/GANDLF/utils/gandlf_logging.py index 576df868e..c43d7679d 100644 --- a/GANDLF/utils/gandlf_logging.py +++ b/GANDLF/utils/gandlf_logging.py @@ -8,7 +8,7 @@ def _create_tmp_log_file(): - tmp_dir = Path(tempfile.gettempdir()) + tmp_dir = Path(Path.home()) log_dir = Path.joinpath(tmp_dir, ".gandlf") log_dir.mkdir(parents=True, exist_ok=True) log_file = Path.joinpath(log_dir, get_unique_timestamp() + ".log")