except NameError:
exec("import mudpy.%s" % module)
+
# load the modules contained in this package
modules = ["data", "misc", "password", "telnet"]
load()
element = self.universe.contents[prefix]
except KeyError:
element = mudpy.misc.Element(prefix, self.universe,
- self.filename)
+ self.filename)
element.set(node[facet_pos:], self.data[node])
if prefix.startswith("mudpy.movement."):
self.universe.directions.add(
if re.match("""^area:-?\d+,-?\d+,-?\d+$""", self.key):
coordinates = [(int(x))
for x in self.key.split(":")[1].split(",")]
- offsets = dict((x,
- self.universe.contents["mudpy.movement.%s" % x].get("vector")
- ) for x in self.universe.directions)
+ offsets = dict(
+ (x,
+ self.universe.contents["mudpy.movement.%s" % x].get("vector")
+ ) for x in self.universe.directions)
for portal in self.get("gridlinks"):
adjacent = map(lambda c, o: c + o,
coordinates, offsets[portal])