]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "doc: Use a separate directory for new modules we add to PATH"
authorMartin Liska <mliska@suse.cz>
Sun, 13 Nov 2022 20:56:21 +0000 (21:56 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 14 Nov 2022 08:35:03 +0000 (09:35 +0100)
This reverts commit 70f1c41061b2b55ed4cdc2e83c7cf326c7ebe7a4.

doc/baseconf.py
doc/gcc_sphinx.py [moved from doc/modules/gcc_sphinx.py with 100% similarity]

index d85659e45408e189e502452f1230dc01661970d7..47e3a1264165f89067c3135c8437b800b97bca1a 100644 (file)
@@ -13,6 +13,7 @@
 import os
 import time
 import sys
+# sys.path.insert(0, os.path.abspath('.'))
 
 # gccint needs a deeper stack limit
 sys.setrecursionlimit(2000)
@@ -22,11 +23,8 @@ sys.setrecursionlimit(2000)
 # The full version, including alpha/beta/rc tags
 
 folder = os.path.dirname(os.path.realpath(__file__))
-doc_modules = os.path.join(folder, 'modules')
 gcc_srcdir = os.path.join(folder, '..', 'gcc')
 
-sys.path.insert(0, doc_modules)
-
 def read_file(name):
     path = os.path.join(gcc_srcdir, name)
     if os.path.exists(path):
similarity index 100%
rename from doc/modules/gcc_sphinx.py
rename to doc/gcc_sphinx.py