]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Python/WorkspaceRoutines.py
Add a program to install fars.
[mirror_edk2.git] / Tools / Python / WorkspaceRoutines.py
index 3634d256617d0ec8aed7c205cca39fe136f5a161..8ca88b7ab594c8a6efe64760f779ef617ce2ecbe 100755 (executable)
@@ -33,3 +33,12 @@ def lean(path):
   """Lean the slashes forward"""
 
   return os.path.normpath(path).replace("\\", "/")
+
+def mkdir(path):
+  """Make a directory if it is not there already."""
+
+  try:
+    os.makedirs(path)
+  except:
+    pass
+