import os os.getcwd()
import os dir_path = os.path.dirname(os.path.realpath(__file__))
import os #Get Current working Directory currentDirectory = os.getcwd() #Change the Current working Directory os.chdir('/home/varun')