I'm trying to change the directory of my terminal from a Python script. The program execute successfully but the directory in my terminal doesn't change. Here is the program.
os
path = "/home/najeeb/Desktop/project/scan"
r = os.getcwd()
print "\n Current working directery is %s \n" % r
os.chdir(path)
retval = os.getcwd()
print "Directery changes successfull %s \n" % retval