3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-06 14:24:08 +00:00

Use default prefix directory when no task is specified

This commit is contained in:
George Rennie 2022-06-19 00:49:12 +01:00
parent fb5705b5bd
commit 0308142fa4

View 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]