get the current directory python code example
Example 1: get diroctary in python
import os
cwd = os.getcwd()
print(cwd)
Example 2: get working directory python
import os
os.getcwd()
import os
cwd = os.getcwd()
print(cwd)
import os
os.getcwd()