From 380c325dd38b42356c04c407166630db219431f6 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 16 Sep 2017 17:35:48 +0000 Subject: [PATCH] Data nodes starting with "_" are metadata Avoid loading data nodes with a "_" prefix as Universe content. These are only used as file-local metadata. --- mudpy/data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mudpy/data.py b/mudpy/data.py index 99e6d21..77b2142 100644 --- a/mudpy/data.py +++ b/mudpy/data.py @@ -61,6 +61,8 @@ class Data: if included not in includes: includes.append(included) continue + if node.startswith("_"): + continue facet_pos = node.rfind(".") + 1 if not facet_pos: mudpy.misc.Element(node, self.universe, self, old_style=True) -- 2.11.0