Skip to content

Commit

Permalink
Fix incuslib: call resolve() on user-passed Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Nov 6, 2024
1 parent 6ef8ef9 commit 3136783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions incuslib/simplestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3136783

Please sign in to comment.