Change directory Python

To change the working directory in Python we can use os module.

import os
os.chdir(path)

Where 'path' is the full path of the folder that need to be changed.

 

Leave a Reply

Your email address will not be published. Required fields are marked *