pwd in python code example
Example 1: pwd python
import os
cwd = os.getcwd()
Example 2: get path to current directory python
import os
os.path.abspath(os.getcwd())
import os
cwd = os.getcwd()
import os
os.path.abspath(os.getcwd())