Compare commits

..

2 Commits

Author SHA1 Message Date
ad0d065b03 Fix creating wrong zip archive 2023-06-26 02:19:07 +02:00
924e2c240d Fix wrong archive link 2023-06-25 18:30:29 +02:00
2 changed files with 5 additions and 4 deletions

View File

@ -67,9 +67,10 @@ async def appliance_data(
async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False):
data = await appliance_data(appliance, path, anonymous)
shutil.make_archive(str(path), "zip", path)
shutil.rmtree(path)
return f"{data[0].parent.stem}.zip"
archive = data[0].parent
shutil.make_archive(str(archive.parent), "zip", archive)
shutil.rmtree(archive)
return f"{archive.stem}.zip"
def yaml_export(appliance: "HonAppliance", anonymous=False) -> str:

View File

@ -7,7 +7,7 @@ with open("README.md", "r") as f:
setup(
name="pyhOn",
version="0.14.0",
version="0.14.2",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,