change dir python code example
Example 1: setwd python
os.chdir("/home/varun/temp")
Example 2: change directory in python script
os.chdir(os.path.dirname(__file__))
Example 3: os.chdir python
os.chdir("directory name")
Example 4: how to change os path in python
os.chdir(path)