summaryrefslogtreecommitdiff
path: root/grc/base/Platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/base/Platform.py')
-rw-r--r--grc/base/Platform.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/base/Platform.py b/grc/base/Platform.py
index d322a16e83..25d5939b02 100644
--- a/grc/base/Platform.py
+++ b/grc/base/Platform.py
@@ -92,7 +92,8 @@ class Platform(_Element):
def iter_xml_files(self):
"""Iterator for block descriptions and category trees"""
- for block_path in self._block_paths:
+ get_path = lambda x: os.path.abspath(os.path.expanduser(x))
+ for block_path in map(get_path, self._block_paths):
if os.path.isfile(block_path):
yield block_path
elif os.path.isdir(block_path):