Do nothing if trying to make the current dir

This commit is contained in:
David Neto 2017-03-20 11:23:35 -04:00
parent c3caa546a0
commit 654feb32f2

View File

@ -45,6 +45,10 @@ def mkdir_p(directory):
"""Make the directory, and all its ancestors as required. Any of the
directories are allowed to already exist."""
if directory == "":
# We're being asked to make the current directory.
return
try:
os.makedirs(directory)
except OSError as e: