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:
parent
ea05022f5f
commit
cea39a6193
@ -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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user