Fix for the clashing doc-branch issue
This commit is contained in:
parent
ae1820d73f
commit
e7518eee75
1 changed files with 0 additions and 12 deletions
|
|
@ -178,11 +178,6 @@ if not _no_autodoc:
|
||||||
|
|
||||||
EV_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
EV_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
print(f"Evennia root: {EV_ROOT}, branch:")
|
|
||||||
import subprocess
|
|
||||||
subprocess.call(["git", "rev-parse", "--abbrev-ref", "HEAD"])
|
|
||||||
subprocess.call("pwd")
|
|
||||||
|
|
||||||
sys.path.insert(1, EV_ROOT)
|
sys.path.insert(1, EV_ROOT)
|
||||||
|
|
||||||
with cd(EV_ROOT):
|
with cd(EV_ROOT):
|
||||||
|
|
@ -198,13 +193,6 @@ if not _no_autodoc:
|
||||||
evennia._init()
|
evennia._init()
|
||||||
|
|
||||||
from evennia.utils.ansi import strip_raw_ansi as ansi_clean
|
from evennia.utils.ansi import strip_raw_ansi as ansi_clean
|
||||||
try:
|
|
||||||
from evennia.contrib import crafting # noqa
|
|
||||||
except ImportError:
|
|
||||||
print("--- NOT develop branch!")
|
|
||||||
else:
|
|
||||||
print("--- Develop branch!")
|
|
||||||
|
|
||||||
|
|
||||||
if _no_autodoc:
|
if _no_autodoc:
|
||||||
exclude_patterns = ["api/*"]
|
exclude_patterns = ["api/*"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue