Skip to content

Commit 29adaee

Browse files
ctothclaude
andcommitted
Fix get_applications_path() returning None on Mac
Return /Applications on macOS instead of calling Windows-only function. This fixes a crash in app_framework's is_portable() check. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4261887 commit 29adaee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

platform_utils/paths.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,7 @@ def start_file(path: str) -> None:
212212

213213

214214
def get_applications_path() -> Optional[str]:
215-
""" """
215+
"""Return the system applications directory."""
216+
if is_mac:
217+
return "/Applications"
216218
return _winpaths.get_program_files()

0 commit comments

Comments
 (0)