diff options
| author | anatoly techtonik <techtonik@gmail.com> | 2010-09-29 11:38:40 +0300 |
|---|---|---|
| committer | anatoly techtonik <techtonik@gmail.com> | 2010-09-29 11:38:40 +0300 |
| commit | 54135e92869bd16ec4427c701aa23ec4e723aa76 (patch) | |
| tree | 6e6f8db5a1aebc00f10fd93bddbc7119639012b0 /distutils2/command | |
| parent | d84f9b780229841f0f76d632ec5e606d9207c65d (diff) | |
| download | disutils2-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.py | 2 |
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) |
