summaryrefslogtreecommitdiff
path: root/backend/decky_loader/helpers.py
diff options
context:
space:
mode:
authorGio <me@gio.blue>2026-10-18 08:11:13 +0800
committerGitHub <noreply@github.com>2026-10-17 20:11:13 -0400
commit3c088117f0266852ec5ea780ff6f737dcfa9eab2 (patch)
treedee880537df8c48e867122db197fc3114d8a1a16 /backend/decky_loader/helpers.py
parent7611e381a8e3717d3b8a77b299c22042b9c97ea6 (diff)
downloaddecky-loader-3c088117f0266852ec5ea780ff6f737dcfa9eab2.tar.gz
decky-loader-3c088117f0266852ec5ea780ff6f737dcfa9eab2.zip
fix(macOS): fix macOS type checking and missing method (#923)
Co-authored-by: AAGaming <aagaming@riseup.net> Signed-off-by: Gianni Spadoni <me@gio.blue>
Diffstat (limited to 'backend/decky_loader/helpers.py')
-rw-r--r--backend/decky_loader/helpers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/decky_loader/helpers.py b/backend/decky_loader/helpers.py
index 1621652f..bc330298 100644
--- a/backend/decky_loader/helpers.py
+++ b/backend/decky_loader/helpers.py
@@ -93,10 +93,11 @@ user_agent = f"Decky/{get_loader_version()} (https://decky.xyz)"
# returns the appropriate system python paths
def get_system_pythonpaths() -> list[str]:
try:
+ is_linux_or_mac = localplatform.ON_LINUX or localplatform.ON_MAC
# run as normal normal user if on linux to also include user python paths
- proc = subprocess.run(["python3" if localplatform.ON_LINUX else "python", "-c", "import sys; print('\\n'.join(x for x in sys.path if x))"],
+ proc = subprocess.run(["python3" if is_linux_or_mac else "python", "-c", "import sys; print('\\n'.join(x for x in sys.path if x))"],
# TODO make this less insane
- capture_output=True, user=localplatform.localplatform._get_user_id() if localplatform.ON_LINUX else None, env={} if localplatform.ON_LINUX else None) # pyright: ignore [reportPrivateUsage]
+ capture_output=True, user=localplatform.localplatform._get_user_id() if is_linux_or_mac else None, env={} if is_linux_or_mac else None) # pyright: ignore [reportPrivateUsage]
proc.check_returncode()