Merge pull request #194 from koen-vg/copy-default-config
Create config file from default if not found
This commit is contained in:
commit
306170fe09
@ -1,7 +1,13 @@
|
|||||||
|
|
||||||
|
from os.path import exists
|
||||||
|
from shutil import copyfile
|
||||||
|
|
||||||
from snakemake.remote.HTTP import RemoteProvider as HTTPRemoteProvider
|
from snakemake.remote.HTTP import RemoteProvider as HTTPRemoteProvider
|
||||||
HTTP = HTTPRemoteProvider()
|
HTTP = HTTPRemoteProvider()
|
||||||
|
|
||||||
|
if not exists("config.yaml"):
|
||||||
|
copyfile("config.default.yaml", "config.yaml")
|
||||||
|
|
||||||
configfile: "config.yaml"
|
configfile: "config.yaml"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user