From 6d5ab6d7121d6e249c23cab0257c7c9d8d247e70 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 6 Mar 2012 07:02:59 +0000 Subject: [PATCH] Use absolute imports in package init module * lib/mudpy/__init__.py: Absolute imports are more readable and easier to debug, so use them. --- lib/mudpy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mudpy/__init__.py b/lib/mudpy/__init__.py index f6d3fc8..8e077f7 100644 --- a/lib/mudpy/__init__.py +++ b/lib/mudpy/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Core modules package 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. @@ -22,7 +22,7 @@ def load(): # must not have been, so import it now except NameError: - exec("import %s" % module) + exec("import mudpy.%s" % module) # load the modules contained in this package modules = ["data", "misc", "password", "telnet"] -- 2.11.0