From: Jeremy Stanley Date: Sat, 16 Sep 2017 17:35:48 +0000 (+0000) Subject: Data nodes starting with "_" are metadata X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=8d912c913308593d6fee719d491706832f1415ac 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)