Create output directory recursively
This commit is contained in:
parent
d1e1b573ec
commit
c217ed194c
|
@ -281,7 +281,7 @@ class Imager(ASensor):
|
||||||
# Concatenate the paths
|
# Concatenate the paths
|
||||||
path = os.path.join(self.__common_conf.output.path, name)
|
path = os.path.join(self.__common_conf.output.path, name)
|
||||||
try:
|
try:
|
||||||
os.mkdir(path)
|
os.makedirs(path, exist_ok=True)
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
logger.warning("Output directory '" + path + "' already exists.")
|
logger.warning("Output directory '" + path + "' already exists.")
|
||||||
# Calculate the indices of nonzero values and create a bounding rectangle
|
# Calculate the indices of nonzero values and create a bounding rectangle
|
||||||
|
|
Loading…
Reference in New Issue
Block a user