how to check the current working folder of python file code example
Example 1: get current working directory python
# print current working directory 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()