From: Georg Brandl Date: Wed, 29 Oct 2014 07:07:37 +0000 (+0100) Subject: Move Sphinx extensions to their own subdir. X-Git-Tag: v3.5.0a1~591^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e03902910c70900954572d72997f339a3c1f1154;p=python Move Sphinx extensions to their own subdir. --- diff --git a/Doc/conf.py b/Doc/conf.py index 0c7b601459..ff073b112a 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -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 # --------------------- diff --git a/Doc/tools/c_annotations.py b/Doc/tools/extensions/c_annotations.py similarity index 100% rename from Doc/tools/c_annotations.py rename to Doc/tools/extensions/c_annotations.py diff --git a/Doc/tools/patchlevel.py b/Doc/tools/extensions/patchlevel.py similarity index 100% rename from Doc/tools/patchlevel.py rename to Doc/tools/extensions/patchlevel.py diff --git a/Doc/tools/pyspecific.py b/Doc/tools/extensions/pyspecific.py similarity index 100% rename from Doc/tools/pyspecific.py rename to Doc/tools/extensions/pyspecific.py diff --git a/Doc/tools/suspicious.py b/Doc/tools/extensions/suspicious.py similarity index 99% rename from Doc/tools/suspicious.py rename to Doc/tools/extensions/suspicious.py index ee877336f6..d3ed849157 100644 --- a/Doc/tools/suspicious.py +++ b/Doc/tools/extensions/suspicious.py @@ -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):