diff --git a/esbo_etc/classes/sensor/Imager.py b/esbo_etc/classes/sensor/Imager.py index fbb1fda..48e40fe 100644 --- a/esbo_etc/classes/sensor/Imager.py +++ b/esbo_etc/classes/sensor/Imager.py @@ -281,7 +281,7 @@ class Imager(ASensor): # Concatenate the paths path = os.path.join(self.__common_conf.output.path, name) try: - os.mkdir(path) + os.makedirs(path, exist_ok=True) except FileExistsError: logger.warning("Output directory '" + path + "' already exists.") # Calculate the indices of nonzero values and create a bounding rectangle