This commit is contained in:
gac-x12sa
2025-06-11 16:45:51 +02:00
committed by appel_c
parent 2894b1e5c2
commit 8eac0a2c38
@@ -24,7 +24,7 @@ def get_config() -> ServiceConfig:
""" """
Create and return the service configuration. Create and return the service configuration.
""" """
deployment_path = os.path.dirname(os.path.dirname(csaxs_bec.__file__)) deployment_path = os.path.dirname(os.path.dirname(os.path.dirname(csaxs_bec.__file__)))
files = os.listdir(deployment_path) files = os.listdir(deployment_path)
if "bec_config.yaml" in files: if "bec_config.yaml" in files:
return ServiceConfig(config_path=os.path.join(deployment_path, "bec_config.yaml")) return ServiceConfig(config_path=os.path.join(deployment_path, "bec_config.yaml"))