Fix lazy-import error for EvMore Command from launchcmd context

This commit is contained in:
Griatch 2021-07-29 17:03:04 +02:00
parent 3bc841b781
commit d240d5050d
2 changed files with 4 additions and 2 deletions

View file

@ -883,7 +883,8 @@ def spawn(*prototypes, caller=None, **kwargs):
protparents = {prot["prototype_key"].lower(): prot for prot in protlib.search_prototype()}
if not kwargs.get("only_validate"):
# homogenization to be more lenient about prototype format when entering the prototype manually
# homogenization to be more lenient about prototype format when entering the prototype
# manually
prototypes = [protlib.homogenize_prototype(prot) for prot in prototypes]
# overload module's protparents with specifically given protparents

View file

@ -39,7 +39,8 @@ the `caller.msg()` construct every time the page is updated.
from django.conf import settings
from django.db.models.query import QuerySet
from django.core.paginator import Paginator
from evennia import Command, CmdSet
from evennia.commands.command import Command
from evennia.commands.cmdset import CmdSet
from evennia.commands import cmdhandler
from evennia.utils.ansi import ANSIString
from evennia.utils.utils import make_iter, inherits_from, justify, dedent