get Python current directory code example
Example 1: python get current directory
import os
print(os.getcwd())
Example 2: get path to current directory python
import os
os.path.abspath(os.getcwd())
import os
print(os.getcwd())
import os
os.path.abspath(os.getcwd())