From 924e2c240d0578bf008a4448662ab2cf02746f12 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sun, 25 Jun 2023 18:22:52 +0200 Subject: [PATCH] Fix wrong archive link --- pyhon/diagnose.py | 7 ++++--- setup.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyhon/diagnose.py b/pyhon/diagnose.py index 90ab9b7..d8237aa 100644 --- a/pyhon/diagnose.py +++ b/pyhon/diagnose.py @@ -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), "zip", path) + shutil.rmtree(archive) + return f"{archive.stem}.zip" def yaml_export(appliance: "HonAppliance", anonymous=False) -> str: diff --git a/setup.py b/setup.py index 76b1689..13f8d57 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as f: setup( name="pyhOn", - version="0.14.0", + version="0.14.1", author="Andre Basche", description="Control hOn devices with python", long_description=long_description,