Use default prefix directory when no task is specified
authorGeorge Rennie <georgerennie@gmail.com>
Sat, 18 Jun 2022 23:49:12 +0000 (00:49 +0100)
committerGeorge Rennie <georgerennie@gmail.com>
Sat, 18 Jun 2022 23:49:12 +0000 (00:49 +0100)
sbysrc/sby.py

index f3eca9b5b732986189b1182330aba50cc742cff2..e079ff6c61520678f316b10406d2eed40aab29cf 100644 (file)
@@ -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]