summaryrefslogtreecommitdiff
path: root/sphinx/setup_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r--sphinx/setup_command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py
index 37fc2d042..eebc70def 100644
--- a/sphinx/setup_command.py
+++ b/sphinx/setup_command.py
@@ -179,7 +179,8 @@ class BuildDoc(Command):
app = None
try:
- with patch_docutils(), docutils_namespace():
+ confdir = self.config_dir or self.source_dir
+ with patch_docutils(confdir), docutils_namespace():
app = Sphinx(self.source_dir, self.config_dir,
builder_target_dir, self.doctree_dir,
builder, confoverrides, status_stream,