Commit bd0d051d authored by Alice Bevan-McGregor's avatar Alice Bevan-McGregor

Fixed empty folder issue during upload_docs.

--HG--
branch : distribute
extra : rebase_source : b1e08e29f75d14970b7d4d57692c2e0013449637
parent 9fc8282b
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment