From 4ff9de259cf1e7b01f79a8a8ea1a0a86d0964fa8 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Mon, 18 May 2020 10:56:45 +0200 Subject: [PATCH] Check output path --- esbo_etc/classes/Config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esbo_etc/classes/Config.py b/esbo_etc/classes/Config.py index 573a9be..296a899 100644 --- a/esbo_etc/classes/Config.py +++ b/esbo_etc/classes/Config.py @@ -137,7 +137,10 @@ class Configuration(object): if hasattr(self.conf.common, "jitter_sigma"): mes = self.conf.common.jitter_sigma.check_quantity("val", u.arcsec) mes is not None and error("Configuration check: common -> jitter_sigma: " + mes) - if not hasattr(self.conf.common, "output_path"): + if hasattr(self.conf.common, "output_path"): + mes = self.conf.common.output_path.check_path("val") + mes is not None and error("Configuration check: common -> output_path: " + mes) + else: setattr(self.conf.common, "output_path", Entry(val=".")) if hasattr(self.conf.common, "exposure_time"): mes = self.conf.common.exposure_time.check_quantity("val", u.s)