3 ms·
You might want to look at pathlib: with (Path.home() / '.config' / '1234.conf').open() as fd: print('Hello', file=fd) Granted, with / precedence y
by dom0 10y ago
You might want to look at pathlib:
with (Path.home() / '.config' / '1234.conf').open() as fd:
print('Hello', file=fd)
Granted, with / precedence you'll often need parens to group / before .