Delay import of module-prototypes to avoid init-clash. Resolves #2232.

This commit is contained in:
Griatch 2020-11-12 22:28:14 +01:00
parent a5506d4e85
commit 012d6a1935
2 changed files with 40 additions and 30 deletions

View file

@ -392,8 +392,12 @@ def _init():
BASE_GUEST_TYPECLASS = class_from_module(settings.BASE_GUEST_TYPECLASS)
del class_from_module
# delayed starts
# delayed starts - important so as to not back-access evennia before it has
# finished initializing
GLOBAL_SCRIPTS.start()
from .prototypes import prototypes
prototypes.load_module_prototypes()
del prototypes
def set_trace(term_size=(140, 80), debugger="auto"):