attempted to fix a bug in mkdir_p that fails on jenkins

This commit is contained in:
Guillaume Raffy 2020-11-24 14:26:44 +01:00
parent ae6de7ffef
commit 110aa17dbb
1 changed files with 2 additions and 0 deletions

View File

@ -349,6 +349,8 @@ class NullDebugger(IImageProcessingDebugger):
pass # do nothing pass # do nothing
def mkdir_p(path): def mkdir_p(path):
if os.path.isdir(path) :
return
try: try:
os.makedirs(path) os.makedirs(path)
except OSError as exc: # Python >= 2.5 except OSError as exc: # Python >= 2.5