view get_out_folder.py @ 4:40071ff77285 draft

planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/pm_muairss_read commit 70a4d37ecdf5d586703cfc509922311e95d3205c
author muon-spectroscopy-computational-project
date Tue, 18 Jul 2023 13:26:40 +0000
parents 49b6d76139da
children
line wrap: on
line source

import sys

import yaml


try:
    with open('params.yaml') as f:
        data = yaml.safe_load(f)
    sys.stdout.write(data['out_folder'])
except KeyError or FileNotFoundError:
    sys.stdout.write('muon-airss-out')