summaryrefslogtreecommitdiff
path: root/grc/base/Platform.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2014-08-21 09:22:11 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2014-08-21 09:22:19 -0700
commitbfd4787e1363f4b1c7d8d2441c55f7fc9d1f3323 (patch)
treea11b24d5a81b978334672db75be6979e60c91005 /grc/base/Platform.py
parentfd2ec0b1eb5713124161da2934964769290eb2e4 (diff)
parentcf803dcd07493e8b20ccfe93e92fffb1e5612672 (diff)
Merge remote-tracking branch 'gnuradio-wg-grc/grc_py26_compat_fix' into maint
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):