Added an error_check_python_modules function to evennia.py. This basically imports a host of critical modules and quits with tracebacks if there are problems. This catches pure python-syntax errors (i.e. cases where the source-file itself is malformed), something which is hard to properly handle in the running server (where there's also an issue as to how to best report it). Best they fail out already at an early stage.

This commit is contained in:
Griatch 2011-11-06 21:32:00 +01:00
parent e379816866
commit 703accdd60
7 changed files with 59 additions and 9 deletions

View file

@ -24,6 +24,7 @@ from game.gamesrc.commands.basecommand import Command
from contrib import menusystem, lineeditor
#from contrib import misc_commands
#from contrib import character_creation
class DefaultCmdSet(cmdset_default.DefaultCmdSet):
"""