projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported from archive.
[mudpy.git]
/
mudpy
diff --git
a/mudpy
b/mudpy
index
431c9a0
..
7a5d5b2
100755
(executable)
--- a/
mudpy
+++ b/
mudpy
@@
-9,6
+9,7
@@
import mudpy
# a consistent list so we can reimport these on reload
importlist = [
# a consistent list so we can reimport these on reload
importlist = [
+ "argv",
"create_pidfile",
"daemonize",
"log",
"create_pidfile",
"daemonize",
"log",
@@
-20,7
+21,6
@@
importlist = [
for item in importlist: exec("from mudpy import " + item)
# log an initial message
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
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
# 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
# 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)
# 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()
# do what needs to be done on each pulse
on_pulse()