copy a scenarios.yaml from scenarios.template.yaml so it is not git tracked
This commit is contained in:
parent
f710923320
commit
20e37c232f
13
Snakefile
13
Snakefile
@ -16,10 +16,15 @@ from scripts._helpers import path_provider
|
|||||||
min_version("7.7")
|
min_version("7.7")
|
||||||
HTTP = HTTPRemoteProvider()
|
HTTP = HTTPRemoteProvider()
|
||||||
|
|
||||||
conf_file = os.path.join(workflow.current_basedir, "config/config.yaml")
|
default_files = {
|
||||||
conf_default_file = os.path.join(workflow.current_basedir, "config/config.default.yaml")
|
"config/config.default.yaml": "config/config.yaml",
|
||||||
if not exists(conf_file) and exists(conf_default_file):
|
"config/scenarios.template.yaml": "config/scenarios.yaml",
|
||||||
copyfile(conf_default_file, conf_file)
|
}
|
||||||
|
for template, target in default_files.items():
|
||||||
|
target = os.path.join(workflow.current_basedir, target)
|
||||||
|
template = os.path.join(workflow.current_basedir, template)
|
||||||
|
if not exists(target) and exists(template):
|
||||||
|
copyfile(template, target)
|
||||||
|
|
||||||
configfile: "config/config.default.yaml"
|
configfile: "config/config.default.yaml"
|
||||||
configfile: "config/config.yaml"
|
configfile: "config/config.yaml"
|
||||||
|
Loading…
Reference in New Issue
Block a user