]> granicus.if.org Git - python/commitdiff
Move Sphinx extensions to their own subdir.
authorGeorg Brandl <georg@python.org>
Wed, 29 Oct 2014 07:07:37 +0000 (08:07 +0100)
committerGeorg Brandl <georg@python.org>
Wed, 29 Oct 2014 07:07:37 +0000 (08:07 +0100)
Doc/conf.py
Doc/tools/extensions/c_annotations.py [moved from Doc/tools/c_annotations.py with 100% similarity]
Doc/tools/extensions/patchlevel.py [moved from Doc/tools/patchlevel.py with 100% similarity]
Doc/tools/extensions/pyspecific.py [moved from Doc/tools/pyspecific.py with 100% similarity]
Doc/tools/extensions/suspicious.py [moved from Doc/tools/suspicious.py with 99% similarity]

index 0c7b6014591b1edbe8ad1c020f017d38099ff720..ff073b112a596a3d19e49ce54453957557174e6e 100644 (file)
@@ -7,7 +7,7 @@
 # that aren't pickleable (module imports are okay, they're removed automatically).
 
 import sys, os, time
-sys.path.append(os.path.abspath('tools'))
+sys.path.append(os.path.abspath('tools/extensions'))
 
 # General configuration
 # ---------------------
similarity index 99%
rename from Doc/tools/suspicious.py
rename to Doc/tools/extensions/suspicious.py
index ee877336f676a9ac64bf53d95d1cfa3f5313430c..d3ed849157f041a1febab6b0710e454a84cc4645 100644 (file)
@@ -91,7 +91,7 @@ class CheckSuspiciousMarkupBuilder(Builder):
         self.log_file_name = os.path.join(self.outdir, 'suspicious.csv')
         open(self.log_file_name, 'w').close()
         # load database of previously ignored issues
-        self.load_rules(os.path.join(os.path.dirname(__file__),
+        self.load_rules(os.path.join(os.path.dirname(__file__), '..',
                                      'susp-ignored.csv'))
 
     def get_outdated_docs(self):