We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264f418 commit 608144dCopy full SHA for 608144d
adafruit_shell.py
@@ -441,6 +441,13 @@ def is_armv8():
441
"""
442
return platform.machine() == "armv8l"
443
444
+ @staticmethod
445
+ def is_arm64():
446
+ """
447
+ Check if Platform.machine() returns ARM 64
448
449
+ return platform.machine() == "aarch64"
450
+
451
@staticmethod
452
def get_arch():
453
"""Return a string containing the architecture"""
@@ -470,6 +477,8 @@ def get_os(self):
470
477
for opsys in os_releases:
471
478
if opsys in release_file:
472
479
release = opsys
480
+ if release == "Debian" and os.path.exists("/etc/rpi-issue"):
481
+ release = "Raspbian"
473
482
if os.path.isdir(os.path.expanduser("~/.kano-settings")) or os.path.isdir(
474
483
os.path.expanduser("~/.kanoprofile")
475
484
):
0 commit comments