find dir os code example
Example 1: working directory python
import os
cwd = os.getcwd()
Example 2: pathlib path get directory of current file
import pathlib
pathlib.Path(__file__).parent.absolute()
import os
cwd = os.getcwd()
import pathlib
pathlib.Path(__file__).parent.absolute()