From f5175713af8c8cc8df2f7a2ad45c218f6eddfd11 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Thu, 28 Nov 2019 16:33:33 +0100 Subject: [PATCH] Snakefile: load default config if config.yaml does not exist --- Snakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Snakefile b/Snakefile index 22dc9981..b11d361c 100644 --- a/Snakefile +++ b/Snakefile @@ -1,4 +1,8 @@ -from os.path import normpath +from os.path import normpath, exists +from shutil import copyfile + +if not exists("config.yaml"): + copyfile("config.default.yaml", "config.yaml") configfile: "config.yaml"