From dd7c2be839a8db7d4afaab6e700b4f81c24fb489 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Sat, 24 Apr 2010 16:51:11 -0700 Subject: oe.path.relative: add missing imports Signed-off-by: Chris Larson --- lib/oe/path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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. """ -- cgit 1.2.3-korg