]> git.llucax.com Git - software/sercom-old.git/commitdiff
Bugfix. (nombre de archivo mal formado)
authorLeandro Lucarella <llucax@gmail.com>
Thu, 31 Mar 2005 01:27:20 +0000 (01:27 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 31 Mar 2005 01:27:20 +0000 (01:27 +0000)
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))