DEV Community

Discussion on: Changing Directory with a Python Context Manager

Collapse
 
jmartens profile image
Jonathan Martens

Is there any specific reason for using Path().absolute( ) over os.getcwd(). It would save you a dependency to the pathlib's Path class.