1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

utils/types: Add file_path type

This can be used to allow extension parameters that are paths to use
'~' to refer to the home directory.
This commit is contained in:
Brendan Jackman 2017-09-05 13:30:16 +01:00
parent ea05022f5f
commit cea39a6193

View File

@ -83,6 +83,9 @@ def numeric(value):
return ivalue
return fvalue
def file_path(value):
"""Handles expansion of paths containing '~'"""
return os.path.expanduser(value)
def list_of_strs(value):
"""