You can set the current working directory in Python using the os module, specifically the chdir() function.