1 # -*- coding: utf-8 -*-
2 u"""Core modules package for the mudpy engine."""
4 # Copyright (c) 2004-2010 Jeremy Stanley <fungi@yuggoth.org>. Permission
5 # to use, copy, modify, and distribute this software is granted under
6 # terms provided in the LICENSE file distributed with this software.
9 u"""Import/reload some modules (be careful, as this can result in loops)."""
11 # pick up the modules list from this package
14 # iterate over the list of modules provided
15 for module in modules:
17 # attempt to reload the module, assuming it was probably imported earlier
18 try: exec(u"reload(%s)" % module)
20 # must not have been, so import it now
21 except NameError: exec(u"import %s" % module)
23 # load the modules contained in this package
24 modules = [ u"data", u"misc", u"password", u"telnet" ]