Skip to content
Snippets Groups Projects
Commit dde8c785 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'minor-fix-to-dir-creation' into 'master'

Minor fix for cases where the directory is not given

See merge request !792
parents 04de6fd1 38384702
No related branches found
No related tags found
No related merge requests found
......@@ -556,7 +556,9 @@ def check_directory_exists_and_if_not_mkdir(directory):
Name of the directory
"""
if not os.path.exists(directory):
if directory == "":
return
elif not os.path.exists(directory):
os.makedirs(directory)
logger.debug('Making directory {}'.format(directory))
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment