changing current working directory module in python code example Example: setwd python os.chdir("/home/varun/temp")