fix winzzoz per update da file zip
This commit is contained in:
@@ -242,8 +242,9 @@ def updateFromZip():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
hash = fixZipGetHash(localfilename)
|
hash = fixZipGetHash(localfilename)
|
||||||
unzipper = ziptools()
|
import zipfile
|
||||||
unzipper.extract(localfilename, destpathname)
|
with zipfile.ZipFile(localfilename, "r") as zip_ref:
|
||||||
|
zip_ref.extractall(destpathname)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.info('Non sono riuscito ad estrarre il file zip')
|
logger.info('Non sono riuscito ad estrarre il file zip')
|
||||||
logger.info(e)
|
logger.info(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user