🔵 🔵 🔵


Encounters

၊၊||၊|။

Path.expanduser() ⚬|encounter|ENC|20260611132302-00-•

The issue is that Path() doesn’t automatically expand the ~ (tilde) to your home directory. You need to use .expanduser():

my_path = Path('~/work/data/derived/astro-tools').expanduser()

Alternatively, you can use Path.home():

my_path = Path.home() / 'work/data/derived/astro-tools'

Both approaches will correctly resolve the path to astro-tools.
@Claude ○˒
(echo:: @ )

Link to original