Move extract zip function to utils

This commit is contained in:
Hoang Hong Quan
2024-07-29 15:14:51 +07:00
parent 1e00ad5730
commit ea98f0c950
5 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ class DSDT:
zfile = os.path.basename(url)
#print("Downloading {}".format(os.path.basename(url)))
#self.dl.stream_to_file(url, os.path.join(ztemp,zfile), progress=False, headers=self.h)
self.fetcher.download_and_save_file(url, os.path.join(ztemp,zfile), False)
self.fetcher.download_and_save_file(url, os.path.join(ztemp,zfile))
search_dir = ztemp
if zfile.lower().endswith(".zip"):
print(" - Extracting")