Whenever I want to work with files or directories, the approach of today is to use pathlib.
pathlib is great, convenient, easy to use, and OS independent.
However, some libraries still expect me to use os.path.
How can I transform my Path to the old-school version?
What should I do with my p in the following example?
from pathlib import Path
p = Path.cwd()
some_old_function(p) # <---- error