# HG changeset patch
# User anatoly techtonik <techtonik@gmail.com>
# Date 1285439703 -10800
# Node ID 1f2d2fae23ef3ae4680b5d9b5333d6cb3a7b37d4
# Parent  0b5a964540862dee9aa838a997962b0982873510
lookup documentation in doc/ if docs/ is not found

diff -r 0b5a96454086 -r 1f2d2fae23ef distutils2/command/upload_docs.py
--- a/distutils2/command/upload_docs.py	Wed Sep 22 14:19:05 2010 +0200
+++ b/distutils2/command/upload_docs.py	Sat Sep 25 21:35:03 2010 +0300
@@ -84,6 +84,8 @@
         if self.upload_dir is None:
             build = self.get_finalized_command('build')
             self.upload_dir = os.path.join(build.build_base, "docs")
+            if not os.path.isdir(self.upload_dir):
+                self.upload_dir = os.path.join(build.build_base, "doc")
         self.announce('Using upload directory %s' % self.upload_dir)
         self.verify_upload_dir(self.upload_dir)
         config = read_pypirc(self.repository, self.realm)
diff -r 0b5a96454086 -r 1f2d2fae23ef docs/source/distutils/newcommands.rst
--- a/docs/source/distutils/newcommands.rst	Wed Sep 22 14:19:05 2010 +0200
+++ b/docs/source/distutils/newcommands.rst	Sat Sep 25 21:35:03 2010 +0300
@@ -130,8 +130,8 @@
 The ``upload_docs`` command has the following options:
 
 ``--upload-dir``
-    The directory to be uploaded to the repository. The default value is
-    ``docs`` in project root.
+    The directory to be uploaded to the repository. By default documenation
+    is searched in ``docs`` (or ``doc``) directory in project root.
 
 ``--show-response``
     Display the full response text from server; this is useful for debugging
