Skip to content

Commit

Permalink
Recognize aarch64 as RPi
Browse files Browse the repository at this point in the history
  • Loading branch information
aivarannamaa committed Jan 8, 2023
1 parent 8b1bb6e commit b857046
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion thonny/misc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ def running_on_linux() -> bool:


def running_on_rpi() -> bool:
machine_lower = platform.uname().machine.lower()
return running_on_linux() and (
platform.uname().machine.lower().startswith("arm")
# not great heuristics, I know
machine_lower.startswith("arm")
or machine_lower.startswith("aarch64")
or os.environ.get("DESKTOP_SESSION") == "LXDE-pi"
)

Expand Down

0 comments on commit b857046

Please sign in to comment.