Commits

Barry Warsaw committed 4f79ed3

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.

Comments (0)

Files changed (1)

sphinx/setup_command.py

         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):