Skip to main content

Module path_util

Module path_util 

Source
Expand description

Path-string utilities shared across config loading, env-file reading, and the template engine.

Functions§

display_under_root
The spelling of path relative to the repo root it lives under: what anodizer prints for a repo-committed file, and what it hands git add. Components are joined with / on every platform (slash_display).
expand_tilde
Expand a leading ~ into the user’s home directory.
expand_tilde_with_env
EnvSource-injecting form of expand_tilde.
probe_dir
A guaranteed-to-exist working directory for cwd-agnostic subprocess probes.
slash_display
path rendered with / between components on every platform: the spelling a config, a git pathspec and a log line share, so a message or a structural test compares the same text on Windows as on Unix.