mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
More testing with importlib
This commit is contained in:
parent
455c016c95
commit
a7bb763290
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
import os
|
||||
import sys
|
||||
import re
|
||||
import importlib
|
||||
from recommonmark.transform import AutoStructify
|
||||
from sphinx.util.osutil import cd
|
||||
|
||||
|
|
@ -189,10 +190,12 @@ if not _no_autodoc:
|
|||
os.environ["DJANGO_SETTINGS_MODULE"] = "evennia.settings_default"
|
||||
|
||||
import django # noqa
|
||||
importlib.reload(django)
|
||||
|
||||
django.setup()
|
||||
|
||||
import evennia # noqa
|
||||
importlib.reload(evennia)
|
||||
|
||||
evennia._init()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue