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.
pull/4504/head
egghead 11 years ago
parent 79071aee79
commit ca7e2d283c

@ -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,

Loading…
Cancel
Save