diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-20 00:41:32 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-20 00:41:32 +0000 |
commit | 4040421aeed0f34fe2e039dafc1e1312dfa3e6a9 (patch) | |
tree | de92fe08b68651121729eef752c4822b98276ead /Tools/Python/WorkspaceRoutines.py | |
parent | caea5554abdc29d7774bdd0ec4852be09d5a1630 (diff) | |
download | edk2-platforms-4040421aeed0f34fe2e039dafc1e1312dfa3e6a9.tar.xz |
Add a program to install fars.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2276 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Python/WorkspaceRoutines.py')
-rwxr-xr-x | Tools/Python/WorkspaceRoutines.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tools/Python/WorkspaceRoutines.py b/Tools/Python/WorkspaceRoutines.py index 3634d25661..8ca88b7ab5 100755 --- a/Tools/Python/WorkspaceRoutines.py +++ b/Tools/Python/WorkspaceRoutines.py @@ -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 + |