From: Chris Larson Date: Sat, 24 Apr 2010 23:51:11 +0000 (-0700) Subject: oe.path.relative: add missing imports X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd7c2be839a8db7d4afaab6e700b4f81c24fb489;p=openembedded.git oe.path.relative: add missing imports Signed-off-by: Chris Larson --- 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. """