how to find out in which directory the python script is running+ code example Example: how to check in which directory python in running import os cwd = os.getcwd()