how to change working directory python to one above code example
Example 1: change working directory python
import os
os.chdir(new_working_directory)
Example 2: python change working directory to file directory
import os
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)