From 3136783c8d5718fc32e2b836a7b46ab83df0c6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 6 Nov 2024 12:25:57 +0100 Subject: [PATCH] Fix incuslib: call resolve() on user-passed Paths --- incuslib/simplestreams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/incuslib/simplestreams.py b/incuslib/simplestreams.py index 2d52118..af1bea4 100644 --- a/incuslib/simplestreams.py +++ b/incuslib/simplestreams.py @@ -11,9 +11,9 @@ class SimpleStreams: def __init__(self, incus: Incus, path: Path, cachedir: Path) -> None: self.incus = incus - self.path = path + self.path = path.resolve() self.path.mkdir(exist_ok=True) - self.cachedir = cachedir + self.cachedir = cachedir.resolve() self.cachedir.mkdir(exist_ok=True) def import_from_incus(self, name: str, alias: str) -> None: