mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
path fixes
This commit is contained in:
parent
3325e8c04c
commit
b6e5cb90d1
@ -85,6 +85,7 @@ def download_extentions():
|
|||||||
continue
|
continue
|
||||||
Path(EXTENTIONS_PATH).mkdir(exist_ok=True)
|
Path(EXTENTIONS_PATH).mkdir(exist_ok=True)
|
||||||
with ZipFile(io.BytesIO(zip_file.content)) as zip_obj:
|
with ZipFile(io.BytesIO(zip_file.content)) as zip_obj:
|
||||||
|
if not path.joinpath(extention_name).exists():
|
||||||
zip_obj.extractall(f"{EXTENTIONS_PATH}/{extention_name}")
|
zip_obj.extractall(f"{EXTENTIONS_PATH}/{extention_name}")
|
||||||
logger.debug(f"Extracted {extention_name} to {path}")
|
logger.debug(f"Extracted {extention_name} to {path}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user