From 39f2a72e2fe80df5a015dc23895bdffda860c934 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Wed, 17 Mar 2021 11:40:49 +0000 Subject: [PATCH] Use local copy of config file by default in update_mdc.py --- webservice/update_mdc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webservice/update_mdc.py b/webservice/update_mdc.py index 527505499..4a75efc34 100644 --- a/webservice/update_mdc.py +++ b/webservice/update_mdc.py @@ -1,4 +1,5 @@ import argparse +import os.path as osp import yaml from metadata_client.metadata_client import MetadataClient @@ -6,7 +7,7 @@ from metadata_client.metadata_client import MetadataClient parser = argparse.ArgumentParser( description='Update run status at MDC for a given run id.') parser.add_argument('--conf-file', type=str, help='Path to webservice config', - default='/home/xcal/calibration_webservice_deployed/webservice/webservice.yaml') # noqa + default=osp.join(osp.dirname(__file__), 'webservice.yaml')) parser.add_argument('--flg', type=str, choices=["NA", "R", "A"], help='Status flag for MDC request: NA - not available, R - running, A - available.') # noqa parser.add_argument('--rid', type=int, help='Run id from MDC') -- GitLab