From ad0d065b034228b932abd83d06ca6c3e568d2ea8 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 26 Jun 2023 02:19:07 +0200 Subject: [PATCH] Fix creating wrong zip archive --- pyhon/diagnose.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhon/diagnose.py b/pyhon/diagnose.py index d8237aa..25c934a 100644 --- a/pyhon/diagnose.py +++ b/pyhon/diagnose.py @@ -68,7 +68,7 @@ async def appliance_data( async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False): data = await appliance_data(appliance, path, anonymous) archive = data[0].parent - shutil.make_archive(str(archive), "zip", path) + shutil.make_archive(str(archive.parent), "zip", archive) shutil.rmtree(archive) return f"{archive.stem}.zip" diff --git a/setup.py b/setup.py index 13f8d57..ceaad66 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as f: setup( name="pyhOn", - version="0.14.1", + version="0.14.2", author="Andre Basche", description="Control hOn devices with python", long_description=long_description,