os.path logo pathlib: os.path

1 2 3 4 5 6 7

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)