Skip to content

Commit

Permalink
liblk: Add an attribute to store LK path
Browse files Browse the repository at this point in the history
  • Loading branch information
R0rt1z2 committed Oct 4, 2023
1 parent aa591d4 commit 399c7ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions liblk/LkImage.py
Expand Up @@ -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)
Expand Down

0 comments on commit 399c7ee

Please sign in to comment.