]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 7 Jan 2021 08:06:52 +0000 (16:06 +0800)
commit5c9931e0ffcb1663f529289f2e03c549fdb3c4da
treeddcfbb71d30b8686e75d53bd696a25795f7cbce4
parent8d7f1c1574ceaff11966331855491ef7c96fd110
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: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/path.py