]> git.llucax.com Git - software/sercom-old.git/blobdiff - src/sc_suwi
Bugfix. Se decodifican los headers MIME con caracteres no ASCII antes de validar...
[software/sercom-old.git] / src / sc_suwi
index fe9c5fc9016f50a63a646b8047973c0c005cc85a..f35090db73db83c1f6c1d5c1246178df8eef18e2 100755 (executable)
@@ -246,7 +246,7 @@ def zip(req, entrega_id):
     def zip_path(path, base, zipfd):
         paths = os.listdir(path)
         for p in paths:
     def zip_path(path, base, zipfd):
         paths = os.listdir(path)
         for p in paths:
-            if os.path.isdir(p):
+            if os.path.isdir(os.path.join(path, p)):
                 zip_path(os.path.join(path, p), os.path.join(base, p), zipfd)
             else:
                 zipfd.write(os.path.join(path, p), os.path.join(base, p))
                 zip_path(os.path.join(path, p), os.path.join(base, p), zipfd)
             else:
                 zipfd.write(os.path.join(path, p), os.path.join(base, p))