]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/path: Add canonicalize()
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Wed, 9 Dec 2020 17:05:07 +0000 (18:05 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 28 Jan 2021 14:41:47 +0000 (04:41 -1000)
commit1b557583deb53462e1ed0f3afbe157a795e6c51c
tree8bedba3509bd32d5f32828e6b891521892fea4fc
parent36ca6bfad00ef26a16230141a2374de4a8c7aca7
lib/oe/path: Add canonicalize()

oe.path.canonicalize() is used to canonicalize paths (i.e., remove
symbolic links and "..", and make them absolute). It takes a string
with paths separated by commas, and returns the canonicalized path in
the same format.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 282b19c0e27488ec119f00fb2542ffdc1af54e2a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/path.py