see our current dir in python code example
Example 1: get path to current directory python
import os
os.path.abspath(os.getcwd())
Example 2: how to check in which directory python in running
import os
cwd = os.getcwd()
import os
os.path.abspath(os.getcwd())
import os
cwd = os.getcwd()