diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-22 00:25:11 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-22 00:25:11 +0000 |
commit | af2efcafd4974000a9dfe0f09aa78dcda70aba78 (patch) | |
tree | e63bfb61a65476ef90a31119d297b585ca2464d9 /Tools/Python/WorkspaceRoutines.py | |
parent | d56b1906f1f157735559397578474f8cc7d8fcdb (diff) | |
download | edk2-platforms-af2efcafd4974000a9dfe0f09aa78dcda70aba78.tar.xz |
Added some new field to the far template.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2126 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Python/WorkspaceRoutines.py')
-rwxr-xr-x | Tools/Python/WorkspaceRoutines.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/Python/WorkspaceRoutines.py b/Tools/Python/WorkspaceRoutines.py index c919065fc3..a34eff2d71 100755 --- a/Tools/Python/WorkspaceRoutines.py +++ b/Tools/Python/WorkspaceRoutines.py @@ -19,3 +19,8 @@ def genguid(): str(time.time()) + socket.gethostbyname(socket.gethostname())).hexdigest() return "%s-%s-%s-%s-%s" % (g[0:8], g[8:12], g[12:16], g[16:20], g[20:]) + +def lean(path): + """Lean the slashes forward""" + + return os.path.normpath(path).replace("\\", "/") |