python change working directory for import code example Example: setwd python os.chdir("/home/varun/temp")