From 0308142fa4db2ddd23bda4dca038ae6016b2e1fd Mon Sep 17 00:00:00 2001 From: George Rennie Date: Sun, 19 Jun 2022 00:49:12 +0100 Subject: [PATCH] Use default prefix directory when no task is specified --- sbysrc/sby.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbysrc/sby.py b/sbysrc/sby.py index f3eca9b..e079ff6 100644 --- a/sbysrc/sby.py +++ b/sbysrc/sby.py @@ -402,7 +402,10 @@ def run_task(taskname): if workdir is not None: my_workdir = workdir elif workdir_prefix is not None: - my_workdir = workdir_prefix + "_" + taskname + if taskname is None: + my_workdir = workdir_prefix + else: + my_workdir = workdir_prefix + "_" + taskname if my_workdir is None and sbyfile is not None and not my_opt_tmpdir: my_workdir = sbyfile[:-4] -- 2.30.2