make yaml loading safe

This commit is contained in:
Fabian Neumann 2021-04-27 09:54:52 +02:00
parent b979441462
commit 184aee76ca
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ if 'snakemake' not in globals():
import yaml
snakemake = Dict()
with open('config.yaml') as f:
snakemake.config = yaml.load(f)
snakemake.config = yaml.safe_load(f)
snakemake.input = Dict()
snakemake.output = Dict()

View File

@ -15,7 +15,7 @@ if 'snakemake' not in globals():
import yaml
snakemake = Dict()
with open('config.yaml') as f:
snakemake.config = yaml.load(f)
snakemake.config = yaml.safe_load(f)
snakemake.input = Dict()
snakemake.output = Dict()

View File

@ -11,7 +11,7 @@ if 'snakemake' not in globals():
import yaml
snakemake = Dict()
with open('config.yaml') as f:
snakemake.config = yaml.load(f)
snakemake.config = yaml.safe_load(f)
snakemake.input = Dict()
snakemake.output = Dict()

View File

@ -11,7 +11,7 @@ if 'snakemake' not in globals():
import yaml
snakemake = Dict()
with open('config.yaml') as f:
snakemake.config = yaml.load(f)
snakemake.config = yaml.safe_load(f)
snakemake.input = Dict()
snakemake.output = Dict()