relocatable.bbclass: Normalise the generated path

The generated path we create for the binaries RPATH can have a lot of directory
separators in. Use os.path.normpath() to tidy it up and only include the
required directory separators.

This patch is purely to appease my personal sense of niceness...

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2010-04-22 15:22:38 +01:00
parent d1f413ff30
commit 23ff2e0819
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ def process_dir (directory, d):
dirs = os.listdir(directory)
for file in dirs:
fpath = directory + "/" + file
fpath = os.path.normpath(fpath)
if os.path.islink(fpath):
# Skip symlinks
continue