Do nothing if trying to make the current dir
authorDavid Neto <dneto@google.com>
Mon, 20 Mar 2017 15:23:35 +0000 (11:23 -0400)
committerDavid Neto <dneto@google.com>
Mon, 20 Mar 2017 15:23:35 +0000 (11:23 -0400)
utils/update_build_version.py

index d2984d2..d71aecc 100755 (executable)
@@ -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: