X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=mudpy;h=ae599ab90f4871a3a94e645cf6679eb62e500173;hb=3e018a1c4c3724d2d4a7247f6ed2ef3487f77e99;hp=185cfd4634bd42cfa9646a528754cebe7f150e67;hpb=a053dab754946687a03cce2a1b48df02798a23b5;p=mudpy.git diff --git a/mudpy b/mudpy index 185cfd4..ae599ab 100755 --- a/mudpy +++ b/mudpy @@ -9,6 +9,7 @@ import mudpy # a consistent list so we can reimport these on reload importlist = [ + "argv", "create_pidfile", "daemonize", "log", @@ -20,7 +21,6 @@ importlist = [ for item in importlist: exec("from mudpy import " + item) # log an initial message -from sys import argv log("Started mudpy with command line: " + " ".join(argv)) # fork and disassociate @@ -31,21 +31,15 @@ create_pidfile(universe) # loop indefinitely while the world is not flagged for termination or # there are connected users -while not universe.terminate_world or universe.userlist: +while not universe.terminate_flag or universe.userlist: # the world was flagged for a reload of all code/data - if universe.reload_modules: + if universe.reload_flag: # reload the mudpy module reload(mudpy) for item in importlist: exec("from mudpy import " + item) - # move data into new persistent objects - reload_data() - - # reset the reload flag - universe.reload_modules = False - # do what needs to be done on each pulse on_pulse()