X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=bin%2Fmudpy;h=e946462be04a679b6db5be019aefd7be34b2b5af;hb=e27b1c4b71ab9cad6b2e41d7ff2cf41c3d8b8d3e;hp=a0d764ec76aae05638c9f7c802f694fced0e6f7c;hpb=0b17d02a2c57f91e776e301d3ac9540a19a2e41a;p=mudpy.git diff --git a/bin/mudpy b/bin/mudpy index a0d764e..e946462 100755 --- a/bin/mudpy +++ b/bin/mudpy @@ -1,15 +1,16 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -u"""Skeletal executable for the mudpy engine.""" +"""Skeletal executable for the mudpy engine.""" -# Copyright (c) 2004-2010 Jeremy Stanley . Permission +# Copyright (c) 2004-2013 Jeremy Stanley . Permission # to use, copy, modify, and distribute this software is granted under # terms provided in the LICENSE file distributed with this software. # core objects for the mudpy engine import os.path import sys -sys.path.append(os.path.realpath(u"lib")) +sys.path.append( os.path.realpath("lib") ) +import imp import mudpy # start it up @@ -21,7 +22,7 @@ while not mudpy.misc.universe.terminate_flag or mudpy.misc.universe.userlist: # the world was flagged for a reload of all code/data if mudpy.misc.universe.reload_flag: - reload(mudpy) + imp.reload(mudpy) mudpy.misc.reload_data() mudpy.misc.universe.reload_flag = False