diff options
-rw-r--r-- | lib/oe/path.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/oe/path.py b/lib/oe/path.py index dbaa08d856..7dafdb173e 100644 --- a/lib/oe/path.py +++ b/lib/oe/path.py @@ -1,12 +1,7 @@ -def join(a, *p): +def join(*paths): """Like os.path.join but doesn't treat absolute RHS specially""" - path = a - for b in p: - if path == '' or path.endswith('/'): - path += b - else: - path += '/' + b - return path + import os.path + return os.path.normpath("/".join(paths)) def relative(src, dest): """ Return a relative path from src to dest. |