X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=bin%2Fmudpy;h=b1071e3417a07671bd58b3557b1d390b6f55e540;hb=5f1f5e63a6be65b0226b065576fddf464346e8da;hp=0dfefd2a78e52c8fa392b115374560014be1294b;hpb=ca06d2245a4a1ed1ced7cfceeb79bfd5d7750f82;p=mudpy.git diff --git a/bin/mudpy b/bin/mudpy index 0dfefd2..b1071e3 100755 --- a/bin/mudpy +++ b/bin/mudpy @@ -1,14 +1,15 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -u"""Skeletal executable for the mudpy engine.""" +"""Skeletal executable for the mudpy engine.""" -# Copyright (c) 2004-2009 Jeremy Stanley . Permission +# Copyright (c) 2004-2011 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, sys -sys.path.append( os.path.realpath(u"lib") ) +import os.path +import sys +sys.path.append( os.path.realpath("lib") ) import mudpy # start it up @@ -18,14 +19,14 @@ mudpy.misc.setup() # there are still connected users 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) - mudpy.misc.reload_data() - mudpy.misc.universe.reload_flag = False + # the world was flagged for a reload of all code/data + if mudpy.misc.universe.reload_flag: + reload(mudpy) + mudpy.misc.reload_data() + mudpy.misc.universe.reload_flag = False - # do what needs to be done on each pulse - mudpy.misc.on_pulse() + # do what needs to be done on each pulse + mudpy.misc.on_pulse() # shut it all down mudpy.misc.finish()