Fix wrong archive link
This commit is contained in:
parent
76bd189e7b
commit
924e2c240d
@ -67,9 +67,10 @@ async def appliance_data(
|
|||||||
|
|
||||||
async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False):
|
async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False):
|
||||||
data = await appliance_data(appliance, path, anonymous)
|
data = await appliance_data(appliance, path, anonymous)
|
||||||
shutil.make_archive(str(path), "zip", path)
|
archive = data[0].parent
|
||||||
shutil.rmtree(path)
|
shutil.make_archive(str(archive), "zip", path)
|
||||||
return f"{data[0].parent.stem}.zip"
|
shutil.rmtree(archive)
|
||||||
|
return f"{archive.stem}.zip"
|
||||||
|
|
||||||
|
|
||||||
def yaml_export(appliance: "HonAppliance", anonymous=False) -> str:
|
def yaml_export(appliance: "HonAppliance", anonymous=False) -> str:
|
||||||
|
2
setup.py
2
setup.py
@ -7,7 +7,7 @@ with open("README.md", "r") as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pyhOn",
|
name="pyhOn",
|
||||||
version="0.14.0",
|
version="0.14.1",
|
||||||
author="Andre Basche",
|
author="Andre Basche",
|
||||||
description="Control hOn devices with python",
|
description="Control hOn devices with python",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
|
Loading…
Reference in New Issue
Block a user