diff --git a/pxiii_bec/bec_ipython_client/startup/pre_startup.py b/pxiii_bec/bec_ipython_client/startup/pre_startup.py index 1601a7f..f237f13 100644 --- a/pxiii_bec/bec_ipython_client/startup/pre_startup.py +++ b/pxiii_bec/bec_ipython_client/startup/pre_startup.py @@ -3,6 +3,8 @@ Pre-startup script for BEC client. This script is executed before the BEC client is started. It can be used to add additional command line arguments. """ +from bec_lib import ServiceConfig + def extend_command_line_args(parser): """ @@ -12,3 +14,10 @@ def extend_command_line_args(parser): parser.add_argument("--session", help="Session name", type=str, default="PX-III") return parser + + +def get_config() -> ServiceConfig: + """ + Create and return the service configuration. + """ + return ServiceConfig(redis={"host": "x06da-bec-001", "port": 6379})