[oe-commits] Chris Larson : oe.path.relative: add missing imports

git version control git at git.openembedded.org
Sat Apr 24 23:51:23 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: dd7c2be839a8db7d4afaab6e700b4f81c24fb489
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=dd7c2be839a8db7d4afaab6e700b4f81c24fb489

Author: Chris Larson <chris_larson at mentor.com>
Date:   Sat Apr 24 16:51:11 2010 -0700

oe.path.relative: add missing imports

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 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 48c4b9b..8902951 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. """





More information about the Openembedded-commits mailing list