1pip install path
2from path import Path
3
4# set working directory
5Path("/toWhereYouWantItToBe").cd()
1# Import the os module
2import os
3
4# Print the current working directory
5print("Current working directory: {0}".format(os.getcwd()))
6
7# Change the current working directory
8os.chdir('/Projects')
9
10# Print the current working directory
11print("New Current working directory: {0}".format(os.getcwd()))
12