diff --git a/webservice/update_mdc.py b/webservice/update_mdc.py
index 52750549997d7b45e938678fa45e68088bfff8be..4a75efc34b9b29bb50c250e03cf59ef4843b7ec1 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')