import platform
shell.executable("bash")


if platform.system() == "Windows":
    custom_path = "custom/*/Scripts/snakemake.exe"
else:
    custom_path = "custom/*/bin/snakemake"


rule all:
    input:
        expand("test{i}.out", i=range(3))

rule a:
    output:
        "test{i}.out"
    conda:
        "test-env.yaml"
    params:
        custom_path=custom_path
    shell:
        "test -e {params.custom_path} && "
        "snakemake --version > {output}"
