diff --git a/Snakefile b/Snakefile index ba93a869..ed60c0f5 100644 --- a/Snakefile +++ b/Snakefile @@ -22,7 +22,13 @@ configfile: "config/config.yaml" run = config["run"] scenarios = get_scenarios(run) -RDIR = get_rdir(run) +prefix = run.get("prefix", "") +rdir = get_rdir(run) + +if prefix: + RDIR = f"{prefix}/{rdir}" +else: + RDIR = rdir logs = path_provider("logs/", RDIR, run["shared_resources"]) benchmarks = path_provider("benchmarks/", RDIR, run["shared_resources"]) diff --git a/config/config.default.yaml b/config/config.default.yaml index 235c238d..61ef8c1b 100644 --- a/config/config.default.yaml +++ b/config/config.default.yaml @@ -20,6 +20,7 @@ remote: # docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#run run: + prefix: "" name: "" scenarios: enable: false