os pwd path python code example
Example 1: working directory 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())