Skip to content

Commit

Permalink
Have baremetal work around nonexistant OS
Browse files Browse the repository at this point in the history
  • Loading branch information
elicn committed Apr 19, 2022
1 parent 759f4c1 commit 6ccdbf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qiling/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ def baremetal(self) -> bool:
Type: bool
"""

# os is not initialized for interpreter archs
if self.interpreter:
return False

return self.os.type in QL_OS_BAREMETAL

@property
Expand Down

0 comments on commit 6ccdbf9

Please sign in to comment.