Actually need to go some path and execute some command and below is the code
code:
import os present_working_directory = \'/home/Desktop
My problem was fixed with this command first import os and after add os.path.normpath(os.path.abspath(__file__) + os.sep + os.pardir)
import os
os.path.normpath(os.path.abspath(__file__) + os.sep + os.pardir)