summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/oe/path.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oe/path.py b/lib/oe/path.py
index 48c4b9b633..8902951581 100644
--- a/lib/oe/path.py
+++ b/lib/oe/path.py
@@ -28,12 +28,12 @@ def relative(src, dest):
commonlen = len(common)
# Climb back to the point where they differentiate
- relpath = [ pardir ] * (len(srclist) - commonlen)
+ relpath = [ os.path.pardir ] * (len(srclist) - commonlen)
if commonlen < len(destlist):
# Add remaining portion
relpath += destlist[commonlen:]
- return sep.join(relpath)
+ return os.path.sep.join(relpath)
def format_display(path, metadata):
""" Prepare a path for display to the user. """