Skip to content

Commit e83274b

Browse files
davide125marcan
authored andcommitted
asahi_firmware: fallback to the system asn1
Signed-off-by: Davide Cavalca <[email protected]>
1 parent c633a2b commit e83274b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

asahi_firmware/img4.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SPDX-License-Identifier: MIT
22
import sys
3-
from . import asn1
3+
try:
4+
from . import asn1
5+
except ImportError:
6+
import asn1
47
from ctypes import *
58

69
__all__ = ["img4p_extract_compressed", "img4p_extract"]

0 commit comments

Comments
 (0)