From: Jeremy Stanley Date: Sat, 16 Sep 2017 17:35:48 +0000 (+0000) Subject: Data nodes starting with "_" are metadata X-Git-Tag: 0.0.1~134 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=380c325dd38b42356c04c407166630db219431f6;p=mudpy.git Data nodes starting with "_" are metadata Avoid loading data nodes with a "_" prefix as Universe content. These are only used as file-local metadata. --- 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)