change directory to the directory of a python script,os.chdir(os.path.dirname(__file__))