view get_out_folder.py @ 2:eb6382889b92 draft

planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/pm_muairss_read commit 6a07c4caed5ef35f35198d54ebafd7d1d6d60edb
author muon-spectroscopy-computational-project
date Thu, 15 Sep 2022 10:25:00 +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')