Change directory to the directory of a Python script,os.chdir(os.path.dirname(__file__))