# 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.
- # attempt to reload the module, assuming it was probably imported earlier
- try: exec(u"reload(%s)" % module)
+ # attempt to reload the module, assuming it was probably imported
+ # earlier
+ try:
+ exec("imp.reload(%s)" % module)
- # must not have been, so import it now
- except NameError: exec(u"import %s" % module)
+ # must not have been, so import it now
+ except NameError:
+ exec("import mudpy.%s" % module)
-modules = [ u"data", u"misc", u"password", u"telnet" ]
+modules = ["data", "misc", "password", "telnet"]