move prefix from Snakefile to get_dir function
This commit is contained in:
parent
74185560e0
commit
05a3c43c30
@ -22,13 +22,7 @@ configfile: "config/config.yaml"
|
||||
|
||||
run = config["run"]
|
||||
scenarios = get_scenarios(run)
|
||||
prefix = run.get("prefix", "")
|
||||
rdir = get_rdir(run)
|
||||
|
||||
if prefix:
|
||||
RDIR = f"{prefix}/{rdir}"
|
||||
else:
|
||||
RDIR = rdir
|
||||
RDIR = get_rdir(run)
|
||||
|
||||
logs = path_provider("logs/", RDIR, run["shared_resources"])
|
||||
benchmarks = path_provider("benchmarks/", RDIR, run["shared_resources"])
|
||||
|
@ -59,6 +59,11 @@ def get_rdir(run):
|
||||
RDIR = run["name"] + "/"
|
||||
else:
|
||||
RDIR = ""
|
||||
|
||||
prefix = run.get("prefix", "")
|
||||
if prefix:
|
||||
RDIR = f"{prefix}/{RDIR}"
|
||||
|
||||
return RDIR
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user