X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=bin%2Fmudpy;h=4d816d084acc4af618c1a01776c91b993cde7d43;hp=a9aebc7448cf5beeda1c2bbe86f4109e20f3749e;hb=25a689c9a8aa8f91757f4264900ed9cab40affb4;hpb=1cee9130682021f657adc22a067675c9e8592457 diff --git a/bin/mudpy b/bin/mudpy index a9aebc7..4d816d0 100755 --- a/bin/mudpy +++ b/bin/mudpy @@ -1,14 +1,16 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -u"""Skeletal executable for the mudpy engine.""" +#!/usr/bin/env python3 +"""Skeletal executable for the mudpy engine.""" -# Copyright (c) 2004-2010 Jeremy Stanley . Permission +# Copyright (c) 2004-2016 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 imp +import os +import sys +sys.path.append(os.path.realpath("lib")) + import mudpy # start it up @@ -18,14 +20,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: + imp.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()