Skip to content

feat: support ~ and env vars in config paths#13

Merged
N283T merged 1 commit intomainfrom
fix/path-expansion
Mar 7, 2026
Merged

feat: support ~ and env vars in config paths#13
N283T merged 1 commit intomainfrom
fix/path-expansion

Conversation

@N283T
Copy link
Copy Markdown
Owner

@N283T N283T commented Mar 7, 2026

Summary

  • Expand ~ and environment variables ($HOME, $VAR, ${VAR}) in config paths at load time
  • Raw values preserved in config file (expansion only at runtime)
  • Added _expand_path helper using os.path.expandvars + Path.expanduser

Test plan

  • _expand_path unit tests: empty, absolute, tilde, env var, combined
  • _config_from_dict integration tests: tilde and env var expansion
  • All 19 config tests passing

Expand ~ (home directory) and $VAR / ${VAR} environment variables
when loading paths from config. Raw values are preserved in the
config file; expansion happens at load time.
@N283T N283T merged commit d77b319 into main Mar 7, 2026
6 checks passed
@N283T N283T deleted the fix/path-expansion branch March 7, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant