Making a path object with pathlib module like:
pathlib
p = pathlib.Path(\'file.txt\')
The p object will point to some file in
p
If you simply want the path and do not want to check if the file exists, you can do
str(p)
as document in the Operations section.