Skip to main content

Module platform

Module platform 

Source

Functions§

collapse_home
Replace a leading $HOME in path with ~. Returns path unchanged if it doesn’t start under home, or if home isn’t known.
history_path
Path for the per-user input history file. Uses ATOMCODE_HOME if set, otherwise falls back to home directory.
home_dir
User home directory, or None if it can’t be determined.
image_cache_dir
Path for the per-user image attachment cache. Sibling to history_path(). Used by the History image-attachment feature to persist pasted bytes so up-arrow recall can rehydrate them on a future submit.