oe.path.relative: add missing imports
authorChris Larson <chris_larson@mentor.com>
Sat, 24 Apr 2010 23:51:11 +0000 (16:51 -0700)
committerChris Larson <chris_larson@mentor.com>
Sat, 24 Apr 2010 23:51:18 +0000 (16:51 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/oe/path.py

index 48c4b9b..8902951 100644 (file)
@@ -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. """