From b628c055c3c46d98ba006b3de712a38975d787f0 Mon Sep 17 00:00:00 2001 From: Yohan Jarosz <yohanjarosz@yahoo.fr> Date: Mon, 1 Jun 2015 14:05:11 +0200 Subject: [PATCH] put tmp dir in build dir unless a absolute pat is set --- Snakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Snakefile b/Snakefile index fed3c3c..e9e5244 100644 --- a/Snakefile +++ b/Snakefile @@ -55,7 +55,10 @@ MEMTOTAL = os.environ.get("MEMTOTAL", config['memory_total_gb']) MEMCORE = os.environ.get("MEMCORE", config['memory_per_core_gb']) # temporary directory will be stored inside the OUTPUTDIR directory +# unless a absolute path is set TMPDIR = os.environ.get("TMPDIR", config['tmp_dir']) +if not os.path.isabs(TMP_DIR): + TMPDIR = os.path.join(OUTPUTDIR, TMP_DIR) def prepare_environment(stepname): -- GitLab