Adding os realpath filter.

This is particularly useful when wanting to get the absolute path of filepaths found by the 'fileglob' filter.
This also lets you provide absolute paths to roles, which search for files in different areas unless absolutely pathed.
This commit is contained in:
egghead 2013-10-14 23:41:16 +00:00
parent 79071aee79
commit ca7e2d283c

View file

@ -120,6 +120,7 @@ class FilterModule(object):
# path # path
'basename': os.path.basename, 'basename': os.path.basename,
'dirname': os.path.dirname, 'dirname': os.path.dirname,
'realpath': os.path.realpath,
# failure testing # failure testing
'failed' : failed, 'failed' : failed,