diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-24 16:51:11 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-24 16:51:18 -0700 |
commit | dd7c2be839a8db7d4afaab6e700b4f81c24fb489 (patch) | |
tree | 47d4fac196466030ed24ce0c38b36c9b0913b88a /lib | |
parent | 8507e212edd438a2a389f33ba0e91a129e1c81aa (diff) |
oe.path.relative: add missing imports
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oe/path.py | 4 |
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. """ |