From 40531e074c95be12ad30f95eb11d53cf8abfa747 Mon Sep 17 00:00:00 2001 From: marco Date: Fri, 18 Oct 2019 22:23:44 +0200 Subject: [PATCH] fix winzzoz per update da file zip --- platformcode/updater.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platformcode/updater.py b/platformcode/updater.py index c9a1b95a..5a11a75f 100644 --- a/platformcode/updater.py +++ b/platformcode/updater.py @@ -242,8 +242,9 @@ def updateFromZip(): try: hash = fixZipGetHash(localfilename) - unzipper = ziptools() - unzipper.extract(localfilename, destpathname) + import zipfile + with zipfile.ZipFile(localfilename, "r") as zip_ref: + zip_ref.extractall(destpathname) except Exception as e: logger.info('Non sono riuscito ad estrarre il file zip') logger.info(e)