From 3661115de13dec677a5d24a24536f6461ae6e4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de> Date: Thu, 1 Aug 2024 20:20:59 +0200 Subject: [PATCH] fix: use TMPDIR if provided by environment Change-Id: I421c9f65efb86406d613551f0ae08e9d9e876633 --- bin/yashchiki | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/yashchiki b/bin/yashchiki index 6d17e3a9..65547ecd 100755 --- a/bin/yashchiki +++ b/bin/yashchiki @@ -97,7 +97,8 @@ parser.add_argument( help="Folder where to store meta information to be copied into the " "container. If not provided, a temporary directory is used.") parser.add_argument( - "--tmpdir", type=pathlib.Path, default="", + "--tmpdir", type=pathlib.Path, + default="TMPDIR" in os.environ and os.environ["TMPDIR"] or "", help=f"Directory in which temporary files are saved. This includes " "spack stages, temporary spack config as well as the meta dir " "(if not provided as an argument). If this argument is given " -- GitLab