X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=bin%2Fmudpy;h=a039d2a517fd4a845d12a47a6b65dbbede5d50ec;hp=b1071e3417a07671bd58b3557b1d390b6f55e540;hb=ed48397a89a0f1e30cff616f67b3b4b784f32bb1;hpb=a985778e8ce050ec7a847a6de318464803268582 diff --git a/bin/mudpy b/bin/mudpy index b1071e3..a039d2a 100755 --- a/bin/mudpy +++ b/bin/mudpy @@ -2,14 +2,16 @@ # -*- coding: utf-8 -*- """Skeletal executable for the mudpy engine.""" -# Copyright (c) 2004-2011 Jeremy Stanley . Permission +# Copyright (c) 2004-2014 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 imp +import os import sys -sys.path.append( os.path.realpath("lib") ) +sys.path.append(os.path.realpath("lib")) + import mudpy # start it up @@ -21,7 +23,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