Snakefile: load default config if config.yaml does not exist

This commit is contained in:
Fabian Neumann 2019-11-28 16:33:33 +01:00
parent 85c356297a
commit f5175713af

View File

@ -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" configfile: "config.yaml"