diff options
author | Alice Bevan-McGregor <alice@gothcandy.com> | 2009-11-15 01:34:29 -0800 |
---|---|---|
committer | Alice Bevan-McGregor <alice@gothcandy.com> | 2009-11-15 01:34:29 -0800 |
commit | bd0d051d1484be495e22d4ed0576951f339a1222 (patch) | |
tree | 737f06a0cedc5ec58de4abc073b0a8107b1a59f7 /setuptools/command/upload_docs.py | |
parent | 9fc8282b30e40eb2c02c3e7bd28be5156e109a5c (diff) | |
download | external_python_setuptools-bd0d051d1484be495e22d4ed0576951f339a1222.tar.gz external_python_setuptools-bd0d051d1484be495e22d4ed0576951f339a1222.tar.bz2 external_python_setuptools-bd0d051d1484be495e22d4ed0576951f339a1222.zip |
Fixed empty folder issue during upload_docs.
--HG--
branch : distribute
extra : rebase_source : b1e08e29f75d14970b7d4d57692c2e0013449637
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r-- | setuptools/command/upload_docs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index 5bbdc7f2..29c62f2a 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -50,7 +50,7 @@ class upload_docs(upload): tmp_file = os.path.join(tmp_dir, "%s.zip" % name) zip_file = zipfile.ZipFile(tmp_file, "w") for root, dirs, files in os.walk(self.upload_dir): - if not files: + if root == self.upload_dir and not files: raise DistutilsOptionError( "no files found in upload directory '%s'" % self.upload_dir) |