X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fdata.py;h=4c859153e0e136ad8e72aee3566e17535293973b;hp=f113369020fd6ef02fd91ea603366b09a4452b39;hb=b47129ad779aee1708e092e0538d7301c38aa850;hpb=182e0d2f5d588b71c57272686255a1f6684a2adf diff --git a/mudpy/data.py b/mudpy/data.py index f113369..4c85915 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) @@ -215,8 +217,8 @@ def find_file( prefix = os.path.join(universe.startdir, prefix) # when no root path is specified, assume the current working directory - if not prefix: - prefix = os.getcwd() + if (not prefix or prefix == ".") and hasattr(universe, "startdir"): + prefix = universe.startdir # make sure it's absolute prefix = os.path.realpath(prefix) @@ -273,6 +275,4 @@ def find_file( # and normalize it last thing before returning file_name = os.path.realpath(file_name) - - # normalize the resulting file path and hand it back return file_name