How to set the current working directory in Python?
604
votes
5 Answers
875
votes
Try os.chdir
os.chdir(path)
Change the current working directory to path. Availability: Unix, Windows.
48
votes
10
votes