PyDocs

Nav

File and Directory Access

Path.cwd

pathlib

classmethod of Path (source)
  • Path.cwd()
Return a new path pointing to the current working directory.
1 Example
>>> Path.cwd()
PosixPath('/home/antoine/pathlib')
from the Python docs
See Also
No see-alsos for pathlib/Path.cwd
0 Notes
No notes for Path.cwd