os.chdir()

os.chdir(path)

Change the current working directory to the specified path.