change current working directory to the current file's path in python code example Example: working directory python import os cwd = os.getcwd()