mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-10-05 06:11:06 +01:00
path fixes
This commit is contained in:
@@ -85,8 +85,9 @@ def download_extentions():
|
||||
continue
|
||||
Path(EXTENTIONS_PATH).mkdir(exist_ok=True)
|
||||
with ZipFile(io.BytesIO(zip_file.content)) as zip_obj:
|
||||
zip_obj.extractall(f"{EXTENTIONS_PATH}/{extention_name}")
|
||||
logger.debug(f"Extracted {extention_name} to {path}")
|
||||
if not path.joinpath(extention_name).exists():
|
||||
zip_obj.extractall(f"{EXTENTIONS_PATH}/{extention_name}")
|
||||
logger.debug(f"Extracted {extention_name} to {path}")
|
||||
|
||||
logger.info(f"Successfully downloaded {extention_name} to {path}")
|
||||
downloaded_extentions.append(path.as_posix())
|
||||
|
||||
Reference in New Issue
Block a user