Skip to content
Snippets Groups Projects
Commit 70f1c410 authored by Arsen Arsenović's avatar Arsen Arsenović Committed by Martin Liska
Browse files

doc: Use a separate directory for new modules we add to PATH

ChangeLog:

	* doc/baseconf.py: Inject dirname(__file__)/'modules' to path
	instead of just ``.''.
	* doc/gcc_sphinx.py: Moved to...
	* doc/modules/gcc_sphinx.py: ...here.
parent 0cbb756f
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
import os import os
import time import time
import sys import sys
# sys.path.insert(0, os.path.abspath('.'))
# gccint needs a deeper stack limit # gccint needs a deeper stack limit
sys.setrecursionlimit(2000) sys.setrecursionlimit(2000)
...@@ -23,8 +22,11 @@ sys.setrecursionlimit(2000) ...@@ -23,8 +22,11 @@ sys.setrecursionlimit(2000)
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
folder = os.path.dirname(os.path.realpath(__file__)) folder = os.path.dirname(os.path.realpath(__file__))
doc_modules = os.path.join(folder, 'modules')
gcc_srcdir = os.path.join(folder, '..', 'gcc') gcc_srcdir = os.path.join(folder, '..', 'gcc')
sys.path.insert(0, doc_modules)
def read_file(name): def read_file(name):
path = os.path.join(gcc_srcdir, name) path = os.path.join(gcc_srcdir, name)
if os.path.exists(path): if os.path.exists(path):
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment