show directory in python code example
Example 1: get diroctary in python
import os
cwd = os.getcwd()
print(cwd)
Example 2: how to check in which directory python in running
import os
cwd = os.getcwd()
import os
cwd = os.getcwd()
print(cwd)
import os
cwd = os.getcwd()