* lib/mudpy/data.py: Absolute imports are more readable and easier to
debug, so use them.
# -*- coding: utf-8 -*-
"""Data interface functions for the mudpy engine."""
# -*- coding: utf-8 -*-
"""Data interface functions for the mudpy engine."""
-# Copyright (c) 2004-2011 Jeremy Stanley <fungi@yuggoth.org>. Permission
+# Copyright (c) 2004-2012 Jeremy Stanley <fungi@yuggoth.org>. Permission
# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
def load(self):
"""Read a file and create elements accordingly."""
import ConfigParser
def load(self):
"""Read a file and create elements accordingly."""
import ConfigParser
import os
import os.path
self.data = ConfigParser.RawConfigParser()
import os
import os.path
self.data = ConfigParser.RawConfigParser()
self.universe.private_files.append(item)
for section in self.data.sections():
if section != "__control__":
self.universe.private_files.append(item)
for section in self.data.sections():
if section != "__control__":
- misc.Element(section, self.universe, self.filename)
+ mudpy.misc.Element(section, self.universe, self.filename)
for include_file in includes:
if not os.path.isabs(include_file):
include_file = find_file(
for include_file in includes:
if not os.path.isabs(include_file):
include_file = find_file(