Skip to content

Commit eb6666e

Browse files
committed
Have baremetal work around nonexistant OS
1 parent 11ebcd2 commit eb6666e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

qiling/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ def baremetal(self) -> bool:
349349
350350
Type: bool
351351
"""
352+
353+
# os is not initialized for interpreter archs
354+
if self.interpreter:
355+
return False
356+
352357
return self.os.type in QL_OS_BAREMETAL
353358

354359
@property

0 commit comments

Comments
 (0)