how to know current working directory in in python code example Example: how to check in which directory python in running import os cwd = os.getcwd()