From cea39a6193c6e8451afa607e70231485216f7d18 Mon Sep 17 00:00:00 2001
From: Brendan Jackman <brendan.jackman@arm.com>
Date: Tue, 5 Sep 2017 13:30:16 +0100
Subject: [PATCH] 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.
---
 wlauto/utils/types.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wlauto/utils/types.py b/wlauto/utils/types.py
index 725b22d8..c3fd571a 100644
--- a/wlauto/utils/types.py
+++ b/wlauto/utils/types.py
@@ -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):
     """