Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 248 Bytes

20220904163710.md

File metadata and controls

13 lines (10 loc) · 248 Bytes

pathlib home and cwd

Two nice methods to get the home + current working directories:

>>> from pathlib import Path
>>> Path.cwd()
PosixPath('/Users/bbelderbos/Dropbox/bobcodesit')
>>> Path.home()
PosixPath('/Users/bbelderbos')

#pathlib