logo

... pathlib: os.path



Notes

The code used in this video is listed below.

python code

import os
p = os.path.abspath(os.path.join("settings", "config.json"))
os.path.exists(p)

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.