os set directory code example
Example 1: get working directory python
import os
os.getcwd()
Example 2: setwd python
os.chdir("/home/varun/temp")
Example 3: how to change os path in python
os.chdir(path)
import os
os.getcwd()
os.chdir("/home/varun/temp")
os.chdir(path)