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