summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/path.py')
-rw-r--r--meta/lib/oe/path.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index e2f1913a35..5d21cdcbdf 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -172,6 +172,9 @@ def symlink(source, destination, force=False):
172 if e.errno != errno.EEXIST or os.readlink(destination) != source: 172 if e.errno != errno.EEXIST or os.readlink(destination) != source:
173 raise 173 raise
174 174
175def relsymlink(target, name, force=False):
176 symlink(os.path.relpath(target, os.path.dirname(name)), name, force=force)
177
175def find(dir, **walkoptions): 178def find(dir, **walkoptions):
176 """ Given a directory, recurses into that directory, 179 """ Given a directory, recurses into that directory,
177 returning all files as absolute paths. """ 180 returning all files as absolute paths. """