pathlib, not os.path string surgery
Joining with /, reading with one call, and a type that says "this is a path" instead of str.
from pathlib import Path
config = Path.home() / ".config" / "app" / "settings.toml"
text = config.read_text()
for f in Path("content/tips").glob("*.mdx"): ...Every standard library function that takes a path accepts a Path. There is no reason left to build them with string concatenation.
python