change the directory to the working directory pythonpython code example
Example 1: setwd python
os.chdir("/home/varun/temp")
Example 2: change working directory python
import os
os.chdir(new_working_directory)
os.chdir("/home/varun/temp")
import os
os.chdir(new_working_directory)