From 399c7ee2b6d102244a891ac1929de3f783ab63ff Mon Sep 17 00:00:00 2001 From: R0rt1z2 Date: Wed, 4 Oct 2023 10:46:41 +0200 Subject: [PATCH] liblk: Add an attribute to store LK path --- liblk/LkImage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/liblk/LkImage.py b/liblk/LkImage.py index 3034880..f455129 100644 --- a/liblk/LkImage.py +++ b/liblk/LkImage.py @@ -26,6 +26,7 @@ class LkImage: def __init__(self, lk: str | bytes | bytearray | Path, rename_duplicates=True) -> None: '''Initialize the LK image.''' if isinstance(lk, str) or isinstance(lk, Path): + self.lk_path : str = str(lk) self.lk_contents: bytearray = self.load_image(lk) elif isinstance(lk, bytes): self.lk_contents: bytearray = bytearray(lk)