mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Some fixes to dummyrunner.
This commit is contained in:
parent
047de533f3
commit
5348563bfb
2 changed files with 2 additions and 2 deletions
0
src/utils/dummyrunner/__init__.py
Normal file
0
src/utils/dummyrunner/__init__.py
Normal file
|
|
@ -40,7 +40,7 @@ from twisted.internet import reactor, protocol
|
|||
from twisted.internet.task import LoopingCall
|
||||
|
||||
# Tack on the root evennia directory to the python path and initialize django settings
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
|
||||
from django.core.management import setup_environ
|
||||
from game import settings
|
||||
setup_environ(settings)
|
||||
|
|
@ -278,7 +278,7 @@ if __name__ == '__main__':
|
|||
action_modpath = settings.DUMMYRUNNER_ACTIONS_MODULE
|
||||
except AttributeError:
|
||||
# use default
|
||||
action_modpath = "src.utils.dummyrunner_actions"
|
||||
action_modpath = "src.utils.dummyrunner.dummyrunner_actions"
|
||||
actions = utils.variable_from_module(action_modpath, "ACTIONS")
|
||||
|
||||
print "Connecting %i dummy client(s) to port %i using a %i second timestep ... " % (nclients, port, timestep)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue