os.chdir doesn't change working directory code example Example: python cd to directory import os os.chdir(path)