check working directory python code example Example: get working directory python import os os.getcwd()