file_path = os.path.dirname(os.path.abspath(__file__)) os.chdir(file_path)
file_path = os.path.dirname(os.path.abspath(file))
os.chdir(file_path)