summaryrefslogtreecommitdiff
path: root/sphinx/setup_command.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-04-29 18:26:08 -0400
committerBarry Warsaw <barry@python.org>2010-04-29 18:26:08 -0400
commit67a6b2a7cf25e2ff4c43509c1dd8792763da15ee (patch)
tree552ebc0aeea714d300eda9272e07b30c514ab0d4 /sphinx/setup_command.py
parent7dcc7272ab6335a4c9ba6fe0d7444801f95772ef (diff)
downloadsphinx-67a6b2a7cf25e2ff4c43509c1dd8792763da15ee.tar.gz
As a last resort, search . for config.py. This way, you're almost assured to
find one, providing a fallback default instead of complaining and exiting.
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r--sphinx/setup_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py
index 8f68008d..67f2b67d 100644
--- a/sphinx/setup_command.py
+++ b/sphinx/setup_command.py
@@ -85,7 +85,7 @@ class BuildDoc(Command):
self.config_dir = None
def _guess_source_dir(self):
- for guess in ('doc', 'docs'):
+ for guess in ('doc', 'docs', '.'):
if not os.path.isdir(guess):
continue
for root, dirnames, filenames in os.walk(guess):