Skip to main content

Module platform

Module platform 

Source
Expand description

Platform detection and binary path utilities.

FunctionsΒ§

binary_candidates πŸ”’
Returns candidate filenames to search for a binary (platform-dependent).
check_dir_writable πŸ”’
Verifies that dir is writable by creating a temporary file in it.
default_local_bin πŸ”’
Returns ~/.local/bin, the default install directory on Unix.
executable_name πŸ”’
Returns the platform executable filename (identity on Unix, .exe on Windows).
find_in_path πŸ”’
Searches PATH for a binary by name, returning the first match.
home_dir πŸ”’
Returns the user’s home directory via dirs_next.
platform_binary_name πŸ”’
Builds the platform-specific binary name (e.g. tempo-wallet-darwin-arm64).
platform_tuple πŸ”’
set_executable_permissions πŸ”’
Sets the file mode to 0o755 (owner rwx, group/other rx).