python os get the current directory code example Example: working directory python import os cwd = os.getcwd()