Merge pull request #194 from koen-vg/copy-default-config

Create config file from default if not found
This commit is contained in:
Fabian Neumann 2021-11-22 15:43:02 +01:00 committed by GitHub
commit 306170fe09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,13 @@
from os.path import exists
from shutil import copyfile
from snakemake.remote.HTTP import RemoteProvider as HTTPRemoteProvider
HTTP = HTTPRemoteProvider()
if not exists("config.yaml"):
copyfile("config.default.yaml", "config.yaml")
configfile: "config.yaml"