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 91ad8d3 commit 3d7ee14Copy full SHA for 3d7ee14
adafruit_shell.py
@@ -640,11 +640,11 @@ def get_os(self):
640
release = opsys
641
if release == "Debian" and os.path.exists("/etc/rpi-issue"):
642
release = "Raspbian"
643
- if os.path.isdir(os.path.expanduser("~/.kano-settings")) or os.path.isdir(
644
- os.path.expanduser("~/.kanoprofile")
645
- ):
+ if self.isdir("/etc/pi-top") or self.isdir("~/.config/pi-top"):
+ release = "PiTop"
+ if self.isdir("~/.kano-settings") or self.isdir("~/.kanoprofile"):
646
release = "Kano"
647
- if os.path.isdir(os.path.expanduser("~/.config/ubuntu-mate")):
+ if self.isdir("~/.config/ubuntu-mate"):
648
release = "Mate"
649
if platform.system() == "Darwin":
650
release = "Darwin"
0 commit comments