Change the working directory in Python
Check: Get the current Directory in Python
Python – Changing the current working directory:
This will be achieved via the “os” module:
Change the current working directory to path.
Code:
import os
print(os.getcwd())
os.chdir('C:\\\\Users\\\\user-x\\\\Desktop')
print(os.getcwd())