Module platform

Module platform 

Source
Expand description

Platform-specific path detection and resolution.

This module contains private helpers for detecting the runtime environment (local repo vs installed binary) and resolving platform-appropriate paths. Public API is exposed through sibling modules.

Functionsยง

data_root
Get the root directory for application data (database, config).
detect_local_repo ๐Ÿ”’
Detect if we are running from the local repository.
is_prebuilt_binary
Check if we are running from a pre-built binary (not from the source repo).
normalize_user_path ๐Ÿ”’
Normalize a user-provided path, expanding ~ and making it absolute.
resource_root
Get the root directory for application resources (binaries, static assets).