From: Jeremy Stanley Date: Tue, 24 Apr 2012 20:26:31 +0000 (+0000) Subject: Use absolute imports in data handler module X-Git-Tag: 0.0.1~279 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=f5e94fa07660dbcfd3e5531c40bc3064679b2f95;p=mudpy.git Use absolute imports in data handler module * lib/mudpy/data.py: Absolute imports are more readable and easier to debug, so use them. --- diff --git a/lib/mudpy/data.py b/lib/mudpy/data.py index 243a28b..cdb114f 100644 --- a/lib/mudpy/data.py +++ b/lib/mudpy/data.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Data interface functions for the mudpy engine.""" -# Copyright (c) 2004-2011 Jeremy Stanley . Permission +# Copyright (c) 2004-2012 Jeremy Stanley . Permission # to use, copy, modify, and distribute this software is granted under # terms provided in the LICENSE file distributed with this software. @@ -18,7 +18,7 @@ class DataFile: def load(self): """Read a file and create elements accordingly.""" import ConfigParser - import misc + import mudpy.misc import os import os.path self.data = ConfigParser.RawConfigParser() @@ -83,7 +83,7 @@ class DataFile: 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(