Commit c2f7d9d1 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Fix directory check for current directory

parent 638bcfcb
......@@ -216,6 +216,10 @@ def args_to_param(args):
def ensure_dir_presence(path):
"""Test write mode and eventually create the given directory"""
if not os.path.dirname(path):
# Current directory
path = "."
if not os.path.isdir(path):
LOGGER.info("Creation of the directory <{}>".format(path))
os.mkdir(path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment