Fixing looping bug

This commit is contained in:
Griatch 2021-02-27 18:48:18 +01:00
parent 9eafd3e34f
commit e3321088d3

View file

@ -195,9 +195,9 @@ if not _no_autodoc:
django.setup()
for modname in sys.modules:
if modname.startswith("evennia"):
del sys.modules[modname]
modnames = [mname for mname in sys.modules if mname.startswith("evennia")]
for modname in modnames:
del sys.modules[modname]
import evennia # noqa