summaryrefslogtreecommitdiff
path: root/distutils2/command
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2010-09-29 11:38:40 +0300
committeranatoly techtonik <techtonik@gmail.com>2010-09-29 11:38:40 +0300
commit54135e92869bd16ec4427c701aa23ec4e723aa76 (patch)
tree6e6f8db5a1aebc00f10fd93bddbc7119639012b0 /distutils2/command
parentd84f9b780229841f0f76d632ec5e606d9207c65d (diff)
downloaddisutils2-54135e92869bd16ec4427c701aa23ec4e723aa76.tar.gz
Make the upload_docs command fallback on docs/ if doc/ is not found
Diffstat (limited to 'distutils2/command')
-rw-r--r--distutils2/command/upload_docs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/distutils2/command/upload_docs.py b/distutils2/command/upload_docs.py
index d53dd03..79f204f 100644
--- a/distutils2/command/upload_docs.py
+++ b/distutils2/command/upload_docs.py
@@ -84,6 +84,8 @@ class upload_docs(Command):
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)