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:
parent
79071aee79
commit
ca7e2d283c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue