mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
More experimentation with module reloading
This commit is contained in:
parent
a7bb763290
commit
e8302f46d3
1 changed files with 4 additions and 2 deletions
|
|
@ -190,12 +190,14 @@ if not _no_autodoc:
|
|||
os.environ["DJANGO_SETTINGS_MODULE"] = "evennia.settings_default"
|
||||
|
||||
import django # noqa
|
||||
importlib.reload(django)
|
||||
|
||||
django.setup()
|
||||
|
||||
import sys
|
||||
import evennia # noqa
|
||||
del sys.modules['evennia']
|
||||
del evennia
|
||||
import evennia # noqa
|
||||
importlib.reload(evennia)
|
||||
|
||||
evennia._init()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue